home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1990 September: Essentials 4 / ADC Developer CD (1990-09) [Essentials 4]_iso / Developer Essentials 4.iso / d e v e l o p / develop 1 code / dynamo / rt.macros < prev    next >
MacBinary  |  1989-12-10  |  35.1 KB  |  [TEXT/MPS ]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert MovieShop Macros (other/movieShopMacros) ext Unsupported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, inited, ID 0x5147, Sun Dec 10 13:43:19 1989, modified Sun Dec 10 13:43:19 1989, creator 'MPS ', type ASCII, 35357 bytes "rt.macros" , at 0x8a9d 382 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[MPS ]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 09 72 74 2e 6d 61 63 | 72 6f 73 00 00 00 00 00 |..rt.mac|ros.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 40 00 00 51 |.TEXTMPS| ...@..Q|
|00000050| 47 00 00 00 00 8a 1d 00 | 00 01 7e a1 a8 54 47 a1 |G.......|..~..TG.|
|00000060| a8 54 47 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.TG.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 bf a3 00 00 |........|........|
|00000080| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 0d | 2a 09 09 09 09 09 09 2a |*******.|*......*|
|000000c0| 0d 2a 20 44 59 4e 41 4d | 4f 09 09 09 09 09 09 2a |.* DYNAM|O......*|
|000000d0| 0d 2a 09 09 09 09 09 09 | 2a 0d 2a 20 41 70 70 6c |.*......|*.* Appl|
|000000e0| 65 20 49 49 20 38 2d 62 | 69 74 20 72 75 6e 74 69 |e II 8-b|it runti|
|000000f0| 6d 65 20 6d 61 63 72 6f | 73 2e 09 09 09 2a 0d 2a |me macro|s....*.*|
|00000100| 20 43 6f 70 79 72 69 67 | 68 74 20 28 43 29 20 31 | Copyrig|ht (C) 1|
|00000110| 39 38 39 20 41 70 70 6c | 65 20 43 6f 6d 70 75 74 |989 Appl|e Comput|
|00000120| 65 72 2e 09 09 2a 0d 2a | 09 09 09 09 09 09 2a 0d |er...*.*|......*.|
|00000130| 2a 20 57 72 69 74 74 65 | 6e 20 62 79 20 45 72 69 |* Writte|n by Eri|
|00000140| 63 20 53 6f 6c 64 61 6e | 2c 20 41 70 70 6c 65 20 |c Soldan|, Apple |
|00000150| 49 49 20 44 54 53 09 09 | 2a 0d 2a 09 09 09 09 09 |II DTS..|*.*.....|
|00000160| 09 2a 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*.*****|********|
|00000170| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000180| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 2a 20 54 68 |********|**..* Th|
|000001a0| 65 73 65 20 6d 61 63 72 | 6f 73 20 61 72 65 20 69 |ese macr|os are i|
|000001b0| 6e 74 65 72 66 61 63 65 | 73 20 66 6f 72 20 74 68 |nterface|s for th|
|000001c0| 65 20 72 75 6e 74 69 6d | 65 20 72 6f 75 74 69 6e |e runtim|e routin|
|000001d0| 65 73 20 61 73 73 6f 63 | 69 61 74 65 64 20 77 69 |es assoc|iated wi|
|000001e0| 74 68 20 74 68 65 6d 2e | 0d 2a 20 54 68 65 20 72 |th them.|.* The r|
|000001f0| 75 6e 74 69 6d 65 20 72 | 6f 75 74 69 6e 65 73 20 |untime r|outines |
|00000200| 68 61 6e 64 6c 65 20 75 | 70 20 74 6f 20 31 32 38 |handle u|p to 128|
|00000210| 20 69 6e 74 65 67 65 72 | 20 76 61 72 69 61 62 6c | integer| variabl|
|00000220| 65 73 2c 20 61 6e 64 20 | 75 70 20 74 6f 20 32 35 |es, and |up to 25|
|00000230| 36 0d 2a 20 73 74 72 69 | 6e 67 73 2e 20 20 54 68 |6.* stri|ngs. Th|
|00000240| 65 20 69 6e 74 65 67 65 | 72 20 66 75 6e 63 74 69 |e intege|r functi|
|00000250| 6f 6e 73 20 61 72 65 20 | 73 69 6d 70 6c 65 20 61 |ons are |simple a|
|00000260| 64 64 2c 73 75 62 2c 6d | 75 6c 2c 64 69 76 2c 20 |dd,sub,m|ul,div, |
|00000270| 61 6e 64 20 6f 74 68 65 | 72 73 2e 0d 2a 20 54 68 |and othe|rs..* Th|
|00000280| 65 73 65 20 6f 74 68 65 | 72 73 20 69 6e 63 6c 75 |ese othe|rs inclu|
|00000290| 64 65 20 6d 61 73 73 2d | 69 6e 69 74 69 61 6c 69 |de mass-|initiali|
|000002a0| 7a 61 74 69 6f 6e 2c 20 | 6d 69 6e 2c 20 6d 61 78 |zation, |min, max|
|000002b0| 2c 20 70 72 69 6e 74 20 | 64 65 63 69 6d 61 6c 2c |, print |decimal,|
|000002c0| 20 65 74 63 2e 0d 2a 20 | 54 68 65 20 73 74 72 69 | etc..* |The stri|
|000002d0| 6e 67 20 66 75 6e 63 74 | 69 6f 6e 73 20 61 72 65 |ng funct|ions are|
|000002e0| 20 6d 6f 73 74 20 6f 66 | 20 77 68 61 74 20 69 73 | most of| what is|
|000002f0| 20 61 76 61 69 6c 61 62 | 6c 65 20 69 6e 20 41 70 | availab|le in Ap|
|00000300| 70 6c 65 53 6f 66 74 2c | 20 69 6e 0d 2a 20 76 61 |pleSoft,| in.* va|
|00000310| 72 69 6f 75 73 20 66 6f | 72 6d 73 2e 20 20 54 68 |rious fo|rms. Th|
|00000320| 65 72 65 20 69 73 20 61 | 6c 73 6f 20 73 75 70 70 |ere is a|lso supp|
|00000330| 6f 72 74 20 66 6f 72 20 | 6d 75 6c 74 69 2d 64 69 |ort for |multi-di|
|00000340| 6d 65 6e 73 69 6f 6e 20 | 61 72 72 61 79 73 2e 0d |mension |arrays..|
|00000350| 0d 2a 20 54 68 65 20 70 | 72 69 6e 63 69 70 6c 65 |.* The p|rinciple|
|00000360| 20 6f 66 20 74 68 65 20 | 72 75 6e 74 69 6d 65 20 | of the |runtime |
|00000370| 72 6f 75 74 69 6e 65 73 | 20 69 73 20 74 68 61 74 |routines| is that|
|00000380| 20 74 68 65 20 78 72 65 | 67 20 68 6f 6c 64 73 20 | the xre|g holds |
|00000390| 61 20 64 65 73 74 69 6e | 61 74 69 6f 6e 0d 2a 20 |a destin|ation.* |
|000003a0| 76 61 72 69 61 62 6c 65 | 20 6e 75 6d 62 65 72 20 |variable| number |
|000003b0| 28 66 6f 72 20 69 6e 74 | 73 3a 20 30 2d 32 35 34 |(for int|s: 0-254|
|000003c0| 2c 20 66 6f 72 20 73 74 | 72 69 6e 67 73 3a 20 30 |, for st|rings: 0|
|000003d0| 2d 32 35 35 29 2e 20 20 | 41 6c 6c 20 72 75 6e 74 |-255). |All runt|
|000003e0| 69 6d 65 73 20 70 72 65 | 73 65 72 76 65 0d 2a 20 |imes pre|serve.* |
|000003f0| 74 68 65 20 78 72 65 67 | 2c 20 74 68 65 72 65 66 |the xreg|, theref|
|00000400| 6f 72 65 2c 20 79 6f 75 | 20 63 61 6e 20 64 6f 20 |ore, you| can do |
|00000410| 6d 75 6c 74 69 70 6c 65 | 20 6f 70 65 72 61 74 69 |multiple| operati|
|00000420| 6f 6e 73 20 74 6f 20 61 | 20 73 69 6e 67 6c 65 20 |ons to a| single |
|00000430| 76 61 72 69 61 62 6c 65 | 0d 2a 20 77 69 74 68 6f |variable|.* witho|
|00000440| 75 74 20 68 61 76 69 6e | 67 20 74 6f 20 72 65 6c |ut havin|g to rel|
|00000450| 6f 61 64 20 74 68 65 20 | 78 72 65 67 2e 20 20 54 |oad the |xreg. T|
|00000460| 68 65 20 76 61 6c 75 65 | 73 20 74 68 61 74 20 61 |he value|s that a|
|00000470| 72 65 20 75 73 65 64 20 | 6f 6e 20 74 68 65 20 78 |re used |on the x|
|00000480| 72 65 67 0d 2a 20 76 61 | 72 69 61 62 6c 65 20 28 |reg.* va|riable (|
|00000490| 74 68 65 20 73 6f 75 72 | 63 65 20 64 61 74 61 29 |the sour|ce data)|
|000004a0| 2c 20 69 73 20 6f 6e 65 | 20 6f 66 20 33 20 66 6f |, is one| of 3 fo|
|000004b0| 72 6d 73 20 66 6f 72 20 | 69 6e 74 65 67 65 72 73 |rms for |integers|
|000004c0| 3a 0d 2a 09 31 2e 20 31 | 2d 62 79 74 65 20 76 61 |:.*.1. 1|-byte va|
|000004d0| 6c 75 65 0d 2a 09 32 2e | 20 32 2d 62 79 74 65 20 |lue.*.2.| 2-byte |
|000004e0| 76 61 6c 75 65 0d 2a 09 | 33 2e 20 32 2d 62 79 74 |value.*.|3. 2-byt|
|000004f0| 65 20 69 6e 74 65 67 65 | 72 20 76 61 72 69 61 62 |e intege|r variab|
|00000500| 6c 65 2e 0d 2a 20 31 2d | 62 79 74 65 20 76 61 6c |le..* 1-|byte val|
|00000510| 75 65 73 20 61 72 65 20 | 70 6c 61 63 65 64 20 69 |ues are |placed i|
|00000520| 6e 20 74 68 65 20 61 63 | 63 2e 20 20 32 2d 62 79 |n the ac|c. 2-by|
|00000530| 74 65 20 76 61 6c 75 65 | 73 20 61 72 65 20 70 6c |te value|s are pl|
|00000540| 61 63 65 64 20 69 6e 20 | 74 68 65 20 61 63 63 2c |aced in |the acc,|
|00000550| 79 0d 2a 20 28 61 63 63 | 3d 6c 6f 2c 20 79 3d 68 |y.* (acc|=lo, y=h|
|00000560| 69 29 2e 20 20 32 2d 62 | 79 74 65 20 69 6e 74 65 |i). 2-b|yte inte|
|00000570| 67 65 72 20 76 61 72 69 | 61 62 6c 65 73 20 68 61 |ger vari|ables ha|
|00000580| 76 65 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 20 |ve the v|ariable |
|00000590| 6e 75 6d 62 65 72 20 70 | 6c 61 63 65 64 20 69 6e |number p|laced in|
|000005a0| 0d 2a 20 74 68 65 20 79 | 72 65 67 2e 20 20 28 54 |.* the y|reg. (T|
|000005b0| 68 65 20 79 72 65 67 20 | 69 73 20 6e 6f 74 20 70 |he yreg |is not p|
|000005c0| 72 65 73 65 72 76 65 64 | 20 62 79 20 74 68 65 20 |reserved| by the |
|000005d0| 72 75 6e 74 69 6d 65 20 | 72 6f 75 74 69 6e 65 73 |runtime |routines|
|000005e0| 2e 29 0d 2a 20 4f 6e 63 | 65 20 74 68 65 20 73 6f |.).* Onc|e the so|
|000005f0| 75 72 63 65 20 64 61 74 | 61 20 69 73 20 6c 6f 61 |urce dat|a is loa|
|00000600| 64 65 64 20 28 69 6e 20 | 61 63 63 2c 20 61 63 63 |ded (in |acc, acc|
|00000610| 2d 79 2c 20 6f 72 20 79 | 29 2c 20 74 68 65 20 70 |-y, or y|), the p|
|00000620| 72 6f 70 65 72 20 63 61 | 6c 6c 20 74 6f 20 74 68 |roper ca|ll to th|
|00000630| 65 0d 2a 20 72 75 6e 74 | 69 6d 65 20 72 6f 75 74 |e.* runt|ime rout|
|00000640| 69 6e 65 73 20 69 73 20 | 6d 61 64 65 2e 20 20 54 |ines is |made. T|
|00000650| 68 65 20 27 70 72 6f 70 | 65 72 27 20 72 6f 75 74 |he 'prop|er' rout|
|00000660| 69 6e 65 20 69 73 20 62 | 61 73 65 64 20 6f 6e 20 |ine is b|ased on |
|00000670| 74 68 65 20 74 79 70 65 | 20 6f 66 20 64 61 74 61 |the type| of data|
|00000680| 0d 2a 20 74 68 65 20 73 | 6f 75 72 63 65 20 69 73 |.* the s|ource is|
|00000690| 2e 20 20 28 49 66 20 74 | 68 65 20 73 6f 75 72 63 |. (If t|he sourc|
|000006a0| 65 20 69 73 20 61 20 76 | 61 72 69 61 62 6c 65 2c |e is a v|ariable,|
|000006b0| 20 61 6e 64 20 77 65 20 | 61 72 65 20 61 64 64 69 | and we |are addi|
|000006c0| 6e 67 2c 20 74 68 65 20 | 6d 61 63 72 6f 0d 2a 20 |ng, the |macro.* |
|000006d0| 77 69 6c 6c 20 63 61 6c | 6c 20 74 68 65 20 61 64 |will cal|l the ad|
|000006e0| 64 76 61 72 20 72 6f 75 | 74 69 6e 65 2e 29 0d 0d |dvar rou|tine.)..|
|000006f0| 2a 20 53 74 72 69 6e 67 | 73 20 61 72 65 20 61 6c |* String|s are al|
|00000700| 73 6f 20 72 65 66 65 72 | 65 6e 63 65 64 20 62 79 |so refer|enced by|
|00000710| 20 6e 75 6d 62 65 72 2e | 20 20 54 68 65 72 65 20 | number.| There |
|00000720| 61 72 65 20 33 20 74 61 | 62 6c 65 73 20 66 6f 72 |are 3 ta|bles for|
|00000730| 20 73 74 72 69 6e 67 73 | 3a 0d 2a 09 31 2e 20 53 | strings|:.*.1. S|
|00000740| 74 72 69 6e 67 20 6c 65 | 6e 67 74 68 20 74 61 62 |tring le|ngth tab|
|00000750| 6c 65 2e 0d 2a 09 32 2e | 20 4d 61 78 20 73 74 72 |le..*.2.| Max str|
|00000760| 69 6e 67 20 6c 65 6e 67 | 74 68 20 74 61 62 6c 65 |ing leng|th table|
|00000770| 2e 0d 2a 09 33 2e 20 50 | 6f 69 6e 74 65 72 20 74 |..*.3. P|ointer t|
|00000780| 61 62 6c 65 2e 0d 2a 20 | 53 6f 2c 20 65 61 63 68 |able..* |So, each|
|00000790| 20 73 74 72 69 6e 67 20 | 74 61 6b 65 73 20 75 70 | string |takes up|
|000007a0| 20 66 6f 75 72 20 62 79 | 74 65 73 2c 20 70 6c 75 | four by|tes, plu|
|000007b0| 73 20 68 6f 77 65 76 65 | 72 20 6c 6f 6e 67 20 74 |s howeve|r long t|
|000007c0| 68 65 20 6d 61 78 20 73 | 74 72 69 6e 67 20 6c 65 |he max s|tring le|
|000007d0| 6e 67 74 68 0d 2a 20 69 | 73 2e 20 20 48 61 76 69 |ngth.* i|s. Havi|
|000007e0| 6e 67 20 74 68 65 20 70 | 6f 69 6e 74 65 72 20 61 |ng the p|ointer a|
|000007f0| 6c 6c 6f 77 73 20 74 68 | 65 20 70 72 6f 67 72 61 |llows th|e progra|
|00000800| 6d 20 74 6f 20 70 6f 69 | 6e 74 20 69 6e 74 6f 20 |m to poi|nt into |
|00000810| 6d 65 6d 6f 72 79 20 74 | 68 61 74 20 77 61 73 0d |memory t|hat was.|
|00000820| 2a 20 6e 65 76 65 72 20 | 6c 6f 61 64 65 64 20 6f |* never |loaded o|
|00000830| 72 20 69 6e 69 74 69 61 | 6c 69 7a 65 64 2e 20 20 |r initia|lized. |
|00000840| 54 68 69 73 20 63 61 6e | 20 73 61 76 65 20 74 69 |This can| save ti|
|00000850| 6d 65 20 6c 6f 61 64 69 | 6e 67 20 74 68 65 20 61 |me loadi|ng the a|
|00000860| 70 70 6c 69 63 61 74 69 | 6f 6e 20 66 72 6f 6d 0d |pplicati|on from.|
|00000870| 2a 20 64 69 73 6b 2e 20 | 20 54 68 65 20 73 74 72 |* disk. | The str|
|00000880| 69 6e 67 20 72 6f 75 74 | 69 6e 65 73 20 77 69 6c |ing rout|ines wil|
|00000890| 6c 20 6e 65 76 65 72 20 | 6f 76 65 72 77 72 69 74 |l never |overwrit|
|000008a0| 65 20 74 68 65 20 62 75 | 66 66 65 72 20 73 70 61 |e the bu|ffer spa|
|000008b0| 63 65 20 61 6c 6c 6f 63 | 65 64 20 66 6f 72 0d 2a |ce alloc|ed for.*|
|000008c0| 20 74 68 65 6d 2e 20 20 | 54 68 65 20 73 74 72 69 | them. |The stri|
|000008d0| 6e 67 20 77 69 6c 6c 20 | 62 65 20 74 72 75 6e 63 |ng will |be trunc|
|000008e0| 61 74 65 64 2e 20 20 53 | 6f 2c 20 79 6f 75 20 63 |ated. S|o, you c|
|000008f0| 61 6e 20 61 70 70 65 6e | 64 20 73 74 72 69 6e 67 |an appen|d string|
|00000900| 73 20 77 69 74 68 6f 75 | 74 0d 2a 20 77 6f 72 72 |s withou|t.* worr|
|00000910| 79 20 61 62 6f 75 74 20 | 63 6c 6f 62 62 65 72 69 |y about |clobberi|
|00000920| 6e 67 20 6d 65 6d 6f 72 | 79 2e 0d 0d 0d 2a 2a 2a |ng memor|y....***|
|00000930| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000940| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000950| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000960| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0d 2a |********|******.*|
|00000970| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000980| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000990| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000009a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000009b0| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|000009c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000009d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000009e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000009f0| 2a 2a 0d 0d 0d 2a 20 54 | 68 65 73 65 20 6d 61 63 |**...* T|hese mac|
|00000a00| 72 6f 73 20 61 72 65 20 | 63 61 6c 6c 65 64 20 62 |ros are |called b|
|00000a10| 79 20 6f 74 68 65 72 20 | 6d 61 63 72 6f 73 20 69 |y other |macros i|
|00000a20| 6e 20 74 68 69 73 20 66 | 69 6c 65 2e 0d 0d 09 4d |n this f|ile....M|
|00000a30| 41 43 52 4f 0d 09 61 63 | 6f 72 6d 09 26 6f 70 0d |ACRO..ac|orm.&op.|
|00000a40| 09 69 66 09 26 73 75 62 | 73 74 72 28 26 6f 70 2c |.if.&sub|str(&op,|
|00000a50| 31 2c 31 29 3d 27 23 27 | 20 67 6f 74 6f 20 2e 69 |1,1)='#'| goto .i|
|00000a60| 6d 6d 0d 09 69 66 09 26 | 73 75 62 73 74 72 28 26 |mm..if.&|substr(&|
|00000a70| 6f 70 2c 31 2c 31 29 3c | 3e 27 2a 27 20 74 68 65 |op,1,1)<|>'*' the|
|00000a80| 6e 0d 09 61 65 72 72 6f | 72 09 27 6e 6f 6e 2d 76 |n..aerro|r.'non-v|
|00000a90| 61 72 69 61 62 6c 65 20 | 70 61 72 61 6d 65 74 65 |ariable |paramete|
|00000aa0| 72 20 6d 75 73 74 20 62 | 65 20 70 72 65 63 65 65 |r must b|e precee|
|00000ab0| 64 65 64 20 62 79 20 61 | 20 23 20 6f 72 20 2a 27 |ded by a| # or *'|
|00000ac0| 0d 09 6d 65 78 69 74 0d | 09 65 6e 64 69 66 0d 09 |..mexit.|.endif..|
|00000ad0| 6c 64 61 09 26 73 75 62 | 73 74 72 28 26 6f 70 2c |lda.&sub|str(&op,|
|00000ae0| 32 2c 39 39 39 29 0d 09 | 6d 65 78 69 74 0d 2e 69 |2,999)..|mexit..i|
|00000af0| 6d 6d 09 6c 64 61 09 23 | 3c 26 73 75 62 73 74 72 |mm.lda.#|<&substr|
|00000b00| 28 26 6f 70 2c 32 2c 39 | 39 39 29 0d 09 6d 65 6e |(&op,2,9|99)..men|
|00000b10| 64 0d 0d 09 4d 41 43 52 | 4f 0d 09 78 63 6f 72 6d |d...MACR|O..xcorm|
|00000b20| 09 26 6f 70 0d 09 69 66 | 09 26 73 75 62 73 74 72 |.&op..if|.&substr|
|00000b30| 28 26 6f 70 2c 31 2c 31 | 29 3d 27 23 27 20 67 6f |(&op,1,1|)='#' go|
|00000b40| 74 6f 20 2e 69 6d 6d 0d | 09 69 66 09 26 73 75 62 |to .imm.|.if.&sub|
|00000b50| 73 74 72 28 26 6f 70 2c | 31 2c 31 29 3c 3e 27 2a |str(&op,|1,1)<>'*|
|00000b60| 27 20 74 68 65 6e 0d 09 | 61 65 72 72 6f 72 09 27 |' then..|aerror.'|
|00000b70| 6e 6f 6e 2d 76 61 72 69 | 61 62 6c 65 20 70 61 72 |non-vari|able par|
|00000b80| 61 6d 65 74 65 72 20 6d | 75 73 74 20 62 65 20 70 |ameter m|ust be p|
|00000b90| 72 65 63 65 65 64 65 64 | 20 62 79 20 61 20 23 20 |receeded| by a # |
|00000ba0| 6f 72 20 2a 27 0d 09 6d | 65 78 69 74 0d 09 65 6e |or *'..m|exit..en|
|00000bb0| 64 69 66 0d 09 6c 64 78 | 09 26 73 75 62 73 74 72 |dif..ldx|.&substr|
|00000bc0| 28 26 6f 70 2c 32 2c 39 | 39 39 29 0d 09 6d 65 78 |(&op,2,9|99)..mex|
|00000bd0| 69 74 0d 2e 69 6d 6d 09 | 6c 64 78 09 23 3c 26 73 |it..imm.|ldx.#<&s|
|00000be0| 75 62 73 74 72 28 26 6f | 70 2c 32 2c 39 39 39 29 |ubstr(&o|p,2,999)|
|00000bf0| 0d 09 6d 65 6e 64 0d 0d | 09 4d 41 43 52 4f 0d 09 |..mend..|.MACRO..|
|00000c00| 61 78 63 6f 72 6d 09 26 | 6f 70 0d 09 69 66 09 26 |axcorm.&|op..if.&|
|00000c10| 73 75 62 73 74 72 28 26 | 6f 70 2c 31 2c 31 29 3d |substr(&|op,1,1)=|
|00000c20| 27 23 27 20 67 6f 74 6f | 20 2e 69 6d 6d 0d 09 69 |'#' goto| .imm..i|
|00000c30| 66 09 26 73 75 62 73 74 | 72 28 26 6f 70 2c 31 2c |f.&subst|r(&op,1,|
|00000c40| 31 29 3c 3e 27 2a 27 20 | 74 68 65 6e 0d 09 61 65 |1)<>'*' |then..ae|
|00000c50| 72 72 6f 72 09 27 6e 6f | 6e 2d 76 61 72 69 61 62 |rror.'no|n-variab|
|00000c60| 6c 65 20 70 61 72 61 6d | 65 74 65 72 20 6d 75 73 |le param|eter mus|
|00000c70| 74 20 62 65 20 70 72 65 | 63 65 65 64 65 64 20 62 |t be pre|ceeded b|
|00000c80| 79 20 61 20 23 20 6f 72 | 20 2a 27 0d 09 6d 65 78 |y a # or| *'..mex|
|00000c90| 69 74 0d 09 65 6e 64 69 | 66 0d 09 6c 64 61 09 26 |it..endi|f..lda.&|
|00000ca0| 73 75 62 73 74 72 28 26 | 6f 70 2c 32 2c 39 39 39 |substr(&|op,2,999|
|00000cb0| 29 0d 09 6c 64 78 09 26 | 73 75 62 73 74 72 28 26 |)..ldx.&|substr(&|
|00000cc0| 6f 70 2c 32 2c 39 39 39 | 29 2b 31 0d 09 6d 65 78 |op,2,999|)+1..mex|
|00000cd0| 69 74 0d 2e 69 6d 6d 09 | 6c 64 61 09 23 3c 26 73 |it..imm.|lda.#<&s|
|00000ce0| 75 62 73 74 72 28 26 6f | 70 2c 32 2c 39 39 39 29 |ubstr(&o|p,2,999)|
|00000cf0| 0d 09 6c 64 78 09 23 3e | 26 73 75 62 73 74 72 28 |..ldx.#>|&substr(|
|00000d00| 26 6f 70 2c 32 2c 39 39 | 39 29 0d 09 6d 65 6e 64 |&op,2,99|9)..mend|
|00000d10| 0d 0d 09 4d 41 43 52 4f | 0d 09 79 63 6f 72 6d 09 |...MACRO|..ycorm.|
|00000d20| 26 6f 70 0d 09 69 66 09 | 26 73 75 62 73 74 72 28 |&op..if.|&substr(|
|00000d30| 26 6f 70 2c 31 2c 31 29 | 3d 27 23 27 20 67 6f 74 |&op,1,1)|='#' got|
|00000d40| 6f 20 2e 69 6d 6d 0d 09 | 69 66 09 26 73 75 62 73 |o .imm..|if.&subs|
|00000d50| 74 72 28 26 6f 70 2c 31 | 2c 31 29 3c 3e 27 2a 27 |tr(&op,1|,1)<>'*'|
|00000d60| 20 74 68 65 6e 0d 09 61 | 65 72 72 6f 72 09 27 6e | then..a|error.'n|
|00000d70| 6f 6e 2d 76 61 72 69 61 | 62 6c 65 20 70 61 72 61 |on-varia|ble para|
|00000d80| 6d 65 74 65 72 20 6d 75 | 73 74 20 62 65 20 70 72 |meter mu|st be pr|
|00000d90| 65 63 65 65 64 65 64 20 | 62 79 20 61 20 23 20 6f |eceeded |by a # o|
|00000da0| 72 20 2a 27 0d 09 6d 65 | 78 69 74 0d 09 65 6e 64 |r *'..me|xit..end|
|00000db0| 69 66 0d 09 6c 64 79 09 | 26 73 75 62 73 74 72 28 |if..ldy.|&substr(|
|00000dc0| 26 6f 70 2c 32 2c 39 39 | 39 29 0d 09 6d 65 78 69 |&op,2,99|9)..mexi|
|00000dd0| 74 0d 2e 69 6d 6d 09 6c | 64 79 09 23 3c 26 73 75 |t..imm.l|dy.#<&su|
|00000de0| 62 73 74 72 28 26 6f 70 | 2c 32 2c 39 39 39 29 0d |bstr(&op|,2,999).|
|00000df0| 09 6d 65 6e 64 0d 0d 09 | 4d 41 43 52 4f 0d 09 61 |.mend...|MACRO..a|
|00000e00| 79 63 6f 72 6d 09 26 6f | 70 0d 09 69 66 09 26 73 |ycorm.&o|p..if.&s|
|00000e10| 75 62 73 74 72 28 26 6f | 70 2c 31 2c 31 29 3d 27 |ubstr(&o|p,1,1)='|
|00000e20| 23 27 20 67 6f 74 6f 20 | 2e 69 6d 6d 0d 09 69 66 |#' goto |.imm..if|
|00000e30| 09 26 73 75 62 73 74 72 | 28 26 6f 70 2c 31 2c 31 |.&substr|(&op,1,1|
|00000e40| 29 3c 3e 27 2a 27 20 74 | 68 65 6e 0d 09 61 65 72 |)<>'*' t|hen..aer|
|00000e50| 72 6f 72 09 27 6e 6f 6e | 2d 76 61 72 69 61 62 6c |ror.'non|-variabl|
|00000e60| 65 20 70 61 72 61 6d 65 | 74 65 72 20 6d 75 73 74 |e parame|ter must|
|00000e70| 20 62 65 20 70 72 65 63 | 65 65 64 65 64 20 62 79 | be prec|eeded by|
|00000e80| 20 61 20 23 20 6f 72 20 | 2a 27 0d 09 6d 65 78 69 | a # or |*'..mexi|
|00000e90| 74 0d 09 65 6e 64 69 66 | 0d 09 6c 64 61 09 26 73 |t..endif|..lda.&s|
|00000ea0| 75 62 73 74 72 28 26 6f | 70 2c 32 2c 39 39 39 29 |ubstr(&o|p,2,999)|
|00000eb0| 0d 09 6c 64 79 09 26 73 | 75 62 73 74 72 28 26 6f |..ldy.&s|ubstr(&o|
|00000ec0| 70 2c 32 2c 39 39 39 29 | 2b 31 0d 09 6d 65 78 69 |p,2,999)|+1..mexi|
|00000ed0| 74 0d 2e 69 6d 6d 09 6c | 64 61 09 23 3c 26 73 75 |t..imm.l|da.#<&su|
|00000ee0| 62 73 74 72 28 26 6f 70 | 2c 32 2c 39 39 39 29 0d |bstr(&op|,2,999).|
|00000ef0| 09 6c 64 79 09 23 3e 26 | 73 75 62 73 74 72 28 26 |.ldy.#>&|substr(&|
|00000f00| 6f 70 2c 32 2c 39 39 39 | 29 0d 09 6d 65 6e 64 0d |op,2,999|)..mend.|
|00000f10| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00000f20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f50| 2a 2a 2a 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |***.****|********|
|00000f60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000f90| 2a 2a 2a 2a 2a 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*****.**|********|
|00000fa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000fb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000fc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000fd0| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 0d 2a 20 54 68 69 73 |*******.|..* This|
|00000fe0| 20 6d 61 63 72 6f 20 69 | 6e 69 74 69 61 6c 69 7a | macro i|nitializ|
|00000ff0| 65 73 20 65 76 65 72 79 | 74 68 69 6e 67 20 6e 65 |es every|thing ne|
|00001000| 63 65 73 73 61 72 79 20 | 69 6e 20 74 68 65 20 72 |cessary |in the r|
|00001010| 75 6e 74 69 6d 65 20 61 | 6e 64 20 72 75 6e 74 69 |untime a|nd runti|
|00001020| 6d 65 0d 2a 20 6d 61 63 | 72 6f 73 2e 20 20 49 74 |me.* mac|ros. It|
|00001030| 20 69 6e 69 74 69 61 6c | 69 7a 65 73 20 67 6c 6f | initial|izes glo|
|00001040| 62 61 6c 20 6d 61 63 72 | 6f 20 76 61 72 69 61 62 |bal macr|o variab|
|00001050| 6c 65 73 20 61 6e 64 20 | 72 65 73 65 74 73 20 65 |les and |resets e|
|00001060| 76 65 72 79 74 68 69 6e | 67 0d 2a 20 69 6e 20 74 |verythin|g.* in t|
|00001070| 68 65 20 72 75 6e 74 69 | 6d 65 20 73 6f 20 74 68 |he runti|me so th|
|00001080| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 63 61 |e applic|ation ca|
|00001090| 6e 20 72 65 73 75 6d 65 | 20 69 66 20 74 68 65 20 |n resume| if the |
|000010a0| 75 73 65 72 20 70 72 65 | 73 73 65 73 20 61 20 72 |user pre|sses a r|
|000010b0| 65 73 65 74 2e 0d 09 4d | 41 43 52 4f 0d 26 6c 61 |eset...M|ACRO.&la|
|000010c0| 62 09 5f 72 74 72 65 73 | 65 74 0d 26 6c 61 62 09 |b._rtres|et.&lab.|
|000010d0| 6a 73 72 09 72 74 72 65 | 73 65 74 0d 09 4d 45 4e |jsr.rtre|set..MEN|
|000010e0| 44 0d 0d 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |D...****|********|
|000010f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001100| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0d 0d 2a 20 |********|***...* |
|00001110| 54 68 69 73 20 6d 61 63 | 72 6f 20 69 73 20 75 73 |This mac|ro is us|
|00001120| 65 64 20 74 6f 20 74 75 | 72 6e 20 6f 6e 20 74 68 |ed to tu|rn on th|
|00001130| 65 20 68 69 2d 62 69 74 | 20 66 6f 72 20 63 68 61 |e hi-bit| for cha|
|00001140| 72 61 63 74 65 72 73 20 | 74 68 61 74 20 61 72 65 |racters |that are|
|00001150| 20 73 65 6e 74 20 74 6f | 20 72 74 63 6f 75 74 2e | sent to| rtcout.|
|00001160| 0d 09 4d 41 43 52 4f 0d | 26 6c 61 62 09 5f 68 69 |..MACRO.|&lab._hi|
|00001170| 62 69 74 63 68 72 73 0d | 26 6c 61 62 09 6a 73 72 |bitchrs.|&lab.jsr|
|00001180| 09 68 69 62 69 74 63 68 | 72 73 0d 09 4d 45 4e 44 |.hibitch|rs..MEND|
|00001190| 0d 0d 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...*****|********|
|000011a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000011b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 0d 2a 20 54 |********|**...* T|
|000011c0| 68 69 73 20 6d 61 63 72 | 6f 20 69 73 20 75 73 65 |his macr|o is use|
|000011d0| 64 20 74 6f 20 74 75 72 | 6e 20 6f 66 66 20 74 68 |d to tur|n off th|
|000011e0| 65 20 68 69 2d 62 69 74 | 20 66 6f 72 20 63 68 61 |e hi-bit| for cha|
|000011f0| 72 61 63 74 65 72 73 20 | 74 68 61 74 20 61 72 65 |racters |that are|
|00001200| 20 73 65 6e 74 20 74 6f | 20 72 74 63 6f 75 74 2e | sent to| rtcout.|
|00001210| 0d 09 4d 41 43 52 4f 0d | 26 6c 61 62 09 5f 6c 6f |..MACRO.|&lab._lo|
|00001220| 77 62 69 74 63 68 72 73 | 0d 26 6c 61 62 09 6a 73 |wbitchrs|.&lab.js|
|00001230| 72 09 6c 6f 77 62 69 74 | 63 68 72 73 0d 09 4d 45 |r.lowbit|chrs..ME|
|00001240| 4e 44 0d 0d 0d 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ND...***|********|
|00001250| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001260| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 0d 0d 2a |********|****...*|
|00001270| 20 54 68 69 73 20 6d 61 | 63 72 6f 20 69 73 20 75 | This ma|cro is u|
|00001280| 73 65 64 20 74 6f 20 6d | 61 6b 65 20 73 75 72 65 |sed to m|ake sure|
|00001290| 20 74 68 61 74 20 63 68 | 61 72 61 63 74 65 72 73 | that ch|aracters|
|000012a0| 20 73 65 6e 74 20 74 6f | 20 72 74 63 6f 75 74 20 | sent to| rtcout |
|000012b0| 61 72 65 20 75 73 65 64 | 20 61 73 2d 69 73 2e 20 |are used| as-is. |
|000012c0| 20 54 68 65 72 65 0d 2a | 20 77 69 6c 6c 20 62 65 | There.*| will be|
|000012d0| 20 6e 6f 20 6d 6f 64 69 | 66 69 63 61 74 69 6f 6e | no modi|fication|
|000012e0| 20 6f 66 20 74 68 65 20 | 68 69 2d 62 69 74 2e 0d | of the |hi-bit..|
|000012f0| 09 4d 41 43 52 4f 0d 26 | 6c 61 62 09 5f 72 65 67 |.MACRO.&|lab._reg|
|00001300| 63 68 72 73 0d 26 6c 61 | 62 09 6a 73 72 09 72 65 |chrs.&la|b.jsr.re|
|00001310| 67 63 68 72 73 0d 09 4d | 45 4e 44 0d 0d 0d 2a 2a |gchrs..M|END...**|
|00001320| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001330| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001340| 2a 2a 2a 2a 2a 0d 0d 0d | 2a 20 54 68 69 73 20 6d |*****...|* This m|
|00001350| 61 63 72 6f 20 70 72 69 | 6e 74 73 20 61 20 63 68 |acro pri|nts a ch|
|00001360| 61 72 61 63 74 65 72 2e | 20 20 54 68 69 73 20 63 |aracter.| This c|
|00001370| 68 61 72 61 63 74 65 72 | 20 69 73 20 65 69 74 68 |haracter| is eith|
|00001380| 65 72 20 61 6c 72 65 61 | 64 79 20 69 6e 20 74 68 |er alrea|dy in th|
|00001390| 65 20 61 63 63 0d 2a 20 | 28 6e 6f 20 6f 70 65 72 |e acc.* |(no oper|
|000013a0| 61 6e 64 29 2c 20 6f 72 | 20 77 68 61 74 20 69 73 |and), or| what is|
|000013b0| 20 64 65 73 63 72 69 62 | 65 64 20 62 79 20 74 68 | describ|ed by th|
|000013c0| 65 20 6f 70 65 72 61 6e | 64 2e 20 20 54 68 65 20 |e operan|d. The |
|000013d0| 6f 70 65 72 61 6e 64 20 | 63 61 6e 20 65 69 74 68 |operand |can eith|
|000013e0| 65 72 0d 2a 20 62 65 20 | 61 6e 20 61 62 73 6f 6c |er.* be |an absol|
|000013f0| 75 74 65 20 6f 72 20 61 | 20 76 61 6c 75 65 20 69 |ute or a| value i|
|00001400| 6e 20 6d 65 6d 6f 72 79 | 2e 0d 2a 20 28 61 63 6f |n memory|..* (aco|
|00001410| 72 6d 20 6d 65 61 6e 73 | 20 6c 6f 61 64 20 41 63 |rm means| load Ac|
|00001420| 63 20 77 69 74 68 20 61 | 20 43 6f 6e 73 74 61 6e |c with a| Constan|
|00001430| 74 20 4f 52 20 4d 65 6d | 6f 72 79 20 76 61 6c 75 |t OR Mem|ory valu|
|00001440| 65 29 2e 0d 09 4d 41 43 | 52 4f 0d 26 6c 61 62 09 |e)...MAC|RO.&lab.|
|00001450| 5f 72 74 63 6f 75 74 09 | 26 6f 70 0d 26 6c 61 62 |_rtcout.|&op.&lab|
|00001460| 0d 09 69 66 09 26 6f 70 | 3d 27 27 20 67 6f 74 6f |..if.&op|='' goto|
|00001470| 20 2e 6a 73 72 0d 09 61 | 63 6f 72 6d 09 26 6f 70 | .jsr..a|corm.&op|
|00001480| 0d 2e 6a 73 72 09 6a 73 | 72 09 72 74 63 6f 75 74 |..jsr.js|r.rtcout|
|00001490| 0d 09 4d 45 4e 44 0d 0d | 0d 2a 2a 2a 2a 2a 2a 2a |..MEND..|.*******|
|000014a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000014b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000014c0| 0d 0d 0d 2a 20 54 68 69 | 73 20 6d 61 63 72 6f 20 |...* Thi|s macro |
|000014d0| 70 72 69 6e 74 73 20 61 | 73 63 69 69 20 64 61 74 |prints a|scii dat|
|000014e0| 61 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 74 68 65 20 |a follow|ing the |
|000014f0| 5f 77 72 69 74 65 20 6d | 61 63 72 6f 2e 20 20 54 |_write m|acro. T|
|00001500| 68 65 20 77 72 69 74 65 | 20 72 6f 75 74 69 6e 65 |he write| routine|
|00001510| 0d 2a 20 77 6f 72 6b 73 | 20 62 79 20 75 73 69 6e |.* works| by usin|
|00001520| 67 20 74 68 65 20 72 65 | 74 75 72 6e 20 61 64 64 |g the re|turn add|
|00001530| 72 65 73 73 20 61 73 20 | 61 20 70 6f 69 6e 74 65 |ress as |a pointe|
|00001540| 72 20 74 6f 20 74 68 65 | 20 61 73 63 69 69 20 64 |r to the| ascii d|
|00001550| 61 74 61 2e 20 20 54 68 | 65 20 61 73 63 69 69 0d |ata. Th|e ascii.|
|00001560| 2a 20 64 61 74 61 20 69 | 73 20 74 65 72 6d 69 6e |* data i|s termin|
|00001570| 61 74 65 64 20 77 69 74 | 68 20 61 20 30 20 28 43 |ated wit|h a 0 (C|
|00001580| 2d 73 74 72 69 6e 67 20 | 73 74 79 6c 65 29 2e 20 |-string |style). |
|00001590| 20 57 68 65 6e 20 74 68 | 65 20 77 72 69 74 65 20 | When th|e write |
|000015a0| 72 6f 75 74 69 6e 65 0d | 2a 20 65 6e 63 6f 75 6e |routine.|* encoun|
|000015b0| 74 65 72 73 20 61 20 30 | 2c 20 69 74 20 73 65 74 |ters a 0|, it set|
|000015c0| 73 20 74 68 65 20 72 65 | 74 75 72 6e 20 61 64 64 |s the re|turn add|
|000015d0| 72 65 73 73 20 73 6f 20 | 74 68 65 20 77 68 65 6e |ress so |the when|
|000015e0| 20 61 6e 20 72 74 73 20 | 69 73 20 65 78 65 63 75 | an rts |is execu|
|000015f0| 74 65 64 2c 0d 2a 20 69 | 74 20 72 65 74 75 72 6e |ted,.* i|t return|
|00001600| 73 20 74 6f 20 74 68 65 | 20 63 6f 64 65 20 66 6f |s to the| code fo|
|00001610| 6c 6c 6f 77 69 6e 67 20 | 74 68 65 20 30 20 74 65 |llowing |the 0 te|
|00001620| 72 6d 69 6e 61 74 6f 72 | 2e 20 20 41 73 20 6d 61 |rminator|. As ma|
|00001630| 6e 79 20 70 61 72 61 6d | 65 74 65 72 73 20 61 73 |ny param|eters as|
|00001640| 0d 2a 20 61 72 65 20 64 | 65 73 69 72 65 64 20 63 |.* are d|esired c|
|00001650| 61 6e 20 62 65 20 70 61 | 73 73 65 64 20 74 6f 20 |an be pa|ssed to |
|00001660| 74 68 69 73 20 72 6f 75 | 74 69 6e 65 2e 20 20 49 |this rou|tine. I|
|00001670| 66 20 74 68 65 20 61 73 | 63 69 69 20 64 61 74 61 |f the as|cii data|
|00001680| 20 69 73 20 6d 6f 72 65 | 20 74 68 61 6e 0d 2a 20 | is more| than.* |
|00001690| 31 20 6c 69 6e 65 2c 20 | 65 6e 64 20 69 74 20 77 |1 line, |end it w|
|000016a0| 69 74 68 20 61 20 63 6f | 6d 6d 61 2c 62 61 63 6b |ith a co|mma,back|
|000016b0| 73 6c 61 73 68 20 74 6f | 20 69 6e 64 69 63 61 74 |slash to| indicat|
|000016c0| 65 20 6c 69 6e 65 20 63 | 6f 6e 74 69 6e 75 61 74 |e line c|ontinuat|
|000016d0| 69 6f 6e 2e 0d 09 4d 41 | 43 52 4f 0d 26 6c 61 62 |ion...MA|CRO.&lab|
|000016e0| 09 5f 77 72 69 74 65 0d | 26 6c 61 62 09 0d 09 69 |._write.|&lab...i|
|000016f0| 66 09 26 73 79 73 6c 69 | 73 74 5b 31 5d 3d 27 27 |f.&sysli|st[1]=''|
|00001700| 20 74 68 65 6e 0d 09 61 | 65 72 72 6f 72 09 27 5f | then..a|error.'_|
|00001710| 77 72 69 74 65 3a 20 20 | 6d 75 73 74 20 68 61 76 |write: |must hav|
|00001720| 65 20 61 74 20 6c 65 61 | 73 74 20 6f 6e 65 20 70 |e at lea|st one p|
|00001730| 61 72 61 6d 65 74 65 72 | 27 0d 09 6d 65 78 69 74 |arameter|'..mexit|
|00001740| 0d 09 65 6e 64 69 66 0d | 09 6a 73 72 09 77 72 69 |..endif.|.jsr.wri|
|00001750| 74 65 0d 09 6c 63 6c 61 | 09 26 69 2c 26 6e 0d 26 |te..lcla|.&i,&n.&|
|00001760| 69 09 73 65 74 61 09 31 | 0d 26 6e 09 73 65 74 61 |i.seta.1|.&n.seta|
|00001770| 09 26 6e 62 72 28 26 73 | 79 73 6c 69 73 74 29 0d |.&nbr(&s|yslist).|
|00001780| 2e 61 09 64 63 2e 62 09 | 26 73 79 73 6c 69 73 74 |.a.dc.b.|&syslist|
|00001790| 5b 26 69 5d 0d 26 69 09 | 73 65 74 61 09 26 69 2b |[&i].&i.|seta.&i+|
|000017a0| 31 0d 09 69 66 09 26 69 | 3c 3d 26 6e 20 67 6f 74 |1..if.&i|<=&n got|
|000017b0| 6f 20 2e 61 0d 09 64 63 | 2e 62 09 30 0d 09 4d 45 |o .a..dc|.b.0..ME|
|000017c0| 4e 44 0d 0d 0d 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ND...***|********|
|000017d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000017e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 0d 0d 2a |********|****...*|
|000017f0| 20 54 68 69 73 20 6d 61 | 63 72 6f 20 70 72 69 6e | This ma|cro prin|
|00001800| 74 73 20 61 20 63 61 72 | 72 69 61 67 65 20 72 65 |ts a car|riage re|
|00001810| 74 75 72 6e 2e 0d 09 4d | 41 43 52 4f 0d 26 6c 61 |turn...M|ACRO.&la|
|00001820| 62 09 5f 77 72 69 74 65 | 63 72 0d 26 6c 61 62 09 |b._write|cr.&lab.|
|00001830| 6a 73 72 09 77 72 69 74 | 65 63 72 0d 09 4d 45 4e |jsr.writ|ecr..MEN|
|00001840| 44 0d 0d 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |D...****|********|
|00001850| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001860| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0d 0d 2a 20 |********|***...* |
|00001870| 54 68 69 73 20 6d 61 63 | 72 6f 20 70 72 69 6e 74 |This mac|ro print|
|00001880| 73 20 61 20 63 20 73 74 | 72 69 6e 67 20 70 6f 69 |s a c st|ring poi|
|00001890| 6e 74 65 64 20 74 6f 20 | 62 79 20 74 68 65 20 6f |nted to |by the o|
|000018a0| 70 65 72 61 6e 64 2e 0d | 09 4d 41 43 52 4f 0d 26 |perand..|.MACRO.&|
|000018b0| 6c 61 62 09 5f 77 72 63 | 73 74 72 09 26 6f 70 0d |lab._wrc|str.&op.|
|000018c0| 26 6c 61 62 09 61 79 63 | 6f 72 6d 09 26 6f 70 0d |&lab.ayc|orm.&op.|
|000018d0| 09 6a 73 72 09 77 72 63 | 73 74 72 0d 09 4d 45 4e |.jsr.wrc|str..MEN|
|000018e0| 44 0d 0d 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |D...****|********|
|000018f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001900| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 2a 2a 2a 2a |********|***.****|
|00001910| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001920| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001930| 2a 2a 2a 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |***.****|********|
|00001940| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001950| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0d 0d 2a 20 |********|***...* |
|00001960| 54 68 69 73 20 6d 61 63 | 72 6f 20 73 65 74 73 20 |This mac|ro sets |
|00001970| 73 69 67 6e 65 64 20 6d | 6f 64 65 2e 20 20 50 72 |signed m|ode. Pr|
|00001980| 69 6e 74 69 6e 67 20 64 | 65 63 69 6d 61 6c 20 6e |inting d|ecimal n|
|00001990| 75 6d 62 65 72 73 20 69 | 73 20 61 66 66 65 63 74 |umbers i|s affect|
|000019a0| 65 64 20 62 79 20 74 68 | 69 73 2e 0d 09 4d 41 43 |ed by th|is...MAC|
|000019b0| 52 4f 0d 26 6c 61 62 09 | 5f 73 69 67 6e 65 64 0d |RO.&lab.|_signed.|
|000019c0| 26 6c 61 62 09 6a 73 72 | 09 73 69 67 6e 65 64 0d |&lab.jsr|.signed.|
|000019d0| 09 4d 45 4e 44 0d 0d 0d | 2a 2a 2a 2a 2a 2a 2a 2a |.MEND...|********|
|000019e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000019f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|00001a00| 0d 0d 2a 20 54 68 69 73 | 20 6d 61 63 72 6f 20 73 |..* This| macro s|
|00001a10| 65 74 73 20 75 6e 73 69 | 67 6e 65 64 20 6d 6f 64 |ets unsi|gned mod|
|00001a20| 65 2e 20 20 50 72 69 6e | 74 69 6e 67 20 64 65 63 |e. Prin|ting dec|
|00001a30| 69 6d 61 6c 20 6e 75 6d | 62 65 72 73 20 69 73 20 |imal num|bers is |
|00001a40| 61 66 66 65 63 74 65 64 | 20 62 79 20 74 68 69 73 |affected| by this|
|00001a50| 2e 0d 09 4d 41 43 52 4f | 0d 26 6c 61 62 09 5f 75 |...MACRO|.&lab._u|
|00001a60| 6e 73 69 67 6e 65 64 0d | 26 6c 61 62 09 6a 73 72 |nsigned.|&lab.jsr|
|00001a70| 09 75 6e 73 69 67 6e 65 | 64 0d 09 4d 45 4e 44 0d |.unsigne|d..MEND.|
|00001a80| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00001a90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001aa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 0d 0d 2a 20 54 68 |********|*...* Th|
|00001ab0| 69 73 20 6d 61 63 72 6f | 20 64 6f 65 73 20 61 20 |is macro| does a |
|00001ac0| 74 77 6f 27 73 20 63 6f | 6d 70 6c 69 6d 65 6e 74 |two's co|mpliment|
|00001ad0| 20 6f 6e 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 | on the |variable|
|00001ae0| 2e 0d 09 4d 41 43 52 4f | 0d 26 6c 61 62 09 5f 63 |...MACRO|.&lab._c|
|00001af0| 68 6e 67 73 67 6e 0d 26 | 6c 61 62 09 6a 73 72 09 |hngsgn.&|lab.jsr.|
|00001b00| 63 68 6e 67 73 67 6e 0d | 09 4d 45 4e 44 0d 0d 0d |chngsgn.|.MEND...|
|00001b10| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001b20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001b30| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 0d 2a 20 54 68 69 73 |*******.|..* This|
|00001b40| 20 6d 61 63 72 6f 20 70 | 72 69 6e 74 73 20 61 20 | macro p|rints a |
|00001b50| 31 2d 62 79 74 65 20 64 | 65 63 69 6d 61 6c 20 76 |1-byte d|ecimal v|
|00001b60| 61 6c 75 65 2e 20 20 54 | 68 69 73 20 76 61 6c 75 |alue. T|his valu|
|00001b70| 65 20 69 73 20 65 69 74 | 68 65 72 20 61 6c 72 65 |e is eit|her alre|
|00001b80| 61 64 79 20 69 6e 0d 2a | 20 74 68 65 20 61 63 63 |ady in.*| the acc|
|00001b90| 20 28 6e 6f 20 6f 70 65 | 72 61 6e 64 29 2c 20 6f | (no ope|rand), o|
|00001ba0| 72 20 77 68 61 74 20 69 | 73 20 64 65 73 63 72 69 |r what i|s descri|
|00001bb0| 62 65 64 20 62 79 20 74 | 68 65 20 6f 70 65 72 61 |bed by t|he opera|
|00001bc0| 6e 64 2e 20 20 54 68 65 | 20 6f 70 65 72 61 6e 64 |nd. The| operand|
|00001bd0| 20 63 61 6e 0d 2a 20 65 | 69 74 68 65 72 20 62 65 | can.* e|ither be|
|00001be0| 20 61 6e 20 61 62 73 6f | 6c 75 74 65 20 6f 72 20 | an abso|lute or |
|00001bf0| 61 20 76 61 6c 75 65 20 | 69 6e 20 6d 65 6d 6f 72 |a value |in memor|
|00001c00| 79 2e 0d 09 4d 41 43 52 | 4f 0d 26 6c 61 62 09 5f |y...MACR|O.&lab._|
|00001c10| 64 65 63 6f 75 74 6c 09 | 26 6f 70 0d 26 6c 61 62 |decoutl.|&op.&lab|
|00001c20| 09 0d 09 69 66 09 26 6f | 70 3d 27 27 20 67 6f 74 |...if.&o|p='' got|
|00001c30| 6f 20 2e 6a 73 72 0d 09 | 61 63 6f 72 6d 09 26 6f |o .jsr..|acorm.&o|
|00001c40| 70 0d 2e 6a 73 72 09 6a | 73 72 09 64 65 63 6f 75 |p..jsr.j|sr.decou|
|00001c50| 74 6c 0d 09 4d 45 4e 44 | 0d 0d 0d 2a 2a 2a 2a 2a |tl..MEND|...*****|
|00001c60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001c70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001c80| 2a 2a 0d 0d 0d 2a 20 54 | 68 69 73 20 6d 61 63 72 |**...* T|his macr|
|00001c90| 6f 20 70 72 69 6e 74 73 | 20 61 20 32 2d 62 79 74 |o prints| a 2-byt|
|00001ca0| 65 20 64 65 63 69 6d 61 | 6c 20 76 61 6c 75 65 2e |e decima|l value.|
|00001cb0| 20 20 54 68 69 73 20 76 | 61 6c 75 65 20 69 73 20 | This v|alue is |
|00001cc0| 73 74 6f 72 65 64 20 69 | 6e 20 61 0d 2a 20 76 61 |stored i|n a.* va|
|00001cd0| 72 69 61 62 6c 65 2e 20 | 20 54 68 65 20 76 61 72 |riable. | The var|
|00001ce0| 69 61 62 6c 65 20 6e 75 | 6d 62 65 72 20 69 73 20 |iable nu|mber is |
|00001cf0| 65 69 74 68 65 72 20 61 | 6c 72 65 61 64 79 20 69 |either a|lready i|
|00001d00| 6e 20 74 68 65 20 78 72 | 65 67 20 28 6e 6f 20 6f |n the xr|eg (no o|
|00001d10| 70 65 72 61 6e 64 29 2c | 0d 2a 20 6f 72 20 69 73 |perand),|.* or is|
|00001d20| 20 64 65 74 65 72 6d 69 | 6e 65 64 20 62 79 20 74 | determi|ned by t|
|00001d30| 68 65 20 6f 70 65 72 61 | 6e 64 2e 0d 09 4d 41 43 |he opera|nd...MAC|
|00001d40| 52 4f 0d 26 6c 61 62 09 | 5f 76 64 65 63 6f 75 74 |RO.&lab.|_vdecout|
|00001d50| 09 26 6f 70 0d 26 6c 61 | 62 09 0d 09 69 66 09 26 |.&op.&la|b...if.&|
|00001d60| 6f 70 3d 27 27 20 67 6f | 74 6f 20 2e 6a 73 72 0d |op='' go|to .jsr.|
|00001d70| 09 6c 64 78 09 23 3c 26 | 6f 70 0d 2e 6a 73 72 09 |.ldx.#<&|op..jsr.|
|00001d80| 6a 73 72 09 76 64 65 63 | 6f 75 74 0d 09 4d 45 4e |jsr.vdec|out..MEN|
|00001d90| 44 0d 0d 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |D...****|********|
|00001da0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001db0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 0d 0d 0d 2a 20 |********|***...* |
|00001dc0| 54 68 69 73 20 6d 61 63 | 72 6f 20 70 72 69 6e 74 |This mac|ro print|
|00001dd0| 73 20 61 20 32 2d 62 79 | 74 65 20 64 65 63 69 6d |s a 2-by|te decim|
|00001de0| 61 6c 20 76 61 6c 75 65 | 2e 20 20 54 68 69 73 20 |al value|. This |
|00001df0| 76 61 6c 75 65 20 69 73 | 20 65 69 74 68 65 72 20 |value is| either |
|00001e00| 61 6c 72 65 61 64 79 20 | 69 6e 0d 2a 20 74 68 65 |already |in.* the|
|00001e10| 20 61 63 63 2c 79 20 28 | 6e 6f 20 6f 70 65 72 61 | acc,y (|no opera|
|00001e20| 6e 64 29 2c 20 6f 72 20 | 77 68 61 74 20 69 73 20 |nd), or |what is |
|00001e30| 64 65 73 63 72 69 62 65 | 64 20 62 79 20 74 68 65 |describe|d by the|
|00001e40| 20 6f 70 65 72 61 6e 64 | 2e 20 20 54 68 65 20 6f | operand|. The o|
|00001e50| 70 65 72 61 6e 64 0d 2a | 20 63 61 6e 20 65 69 74 |perand.*| can eit|
|00001e60| 68 65 72 20 62 65 20 61 | 6e 20 61 62 73 6f 6c 75 |her be a|n absolu|
|00001e70| 74 65 20 6f 72 20 61 20 | 76 61 6c 75 65 20 69 6e |te or a |value in|
|00001e80| 20 6d 65 6d 6f 72 79 2e | 0d 09 4d 41 43 52 4f 0d | memory.|..MACRO.|
|00001e90| 26 6c 61 62 09 5f 64 65 | 63 6f 75 74 09 26 6f 70 |&lab._de|cout.&op|
|00001ea0| 0d 26 6c 61 62 09 0d 09 | 69 66 09 26 6f 70 3d 27 |.&lab...|if.&op='|
|00001eb0| 27 20 67 6f 74 6f 20 2e | 6a 73 72 0d 09 61 79 63 |' goto .|jsr..ayc|
|00001ec0| 6f 72 6d 09 26 6f 70 0d | 2e 6a 73 72 09 6a 73 72 |orm.&op.|.jsr.jsr|
|00001ed0| 09 64 65 63 6f 75 74 0d | 09 4d 45 4e 44 0d 0d 0d |.decout.|.MEND...|
|00001ee0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001ef0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001f00| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 0d 2a 20 54 68 69 73 |*******.|..* This|
|00001f10| 20 6d 61 63 72 6f 20 73 | 65 74 73 20 70 61 64 20 | macro s|ets pad |
|00001f20| 6d 6f 64 65 20 66 6f 72 | 20 68 65 78 2e 20 20 54 |mode for| hex. T|
|00001f30| 68 65 20 76 61 6c 75 65 | 20 69 73 20 65 69 74 68 |he value| is eith|
|00001f40| 65 72 20 61 6c 72 65 61 | 64 79 20 69 6e 20 74 68 |er alrea|dy in th|
|00001f50| 65 20 61 63 63 0d 2a 20 | 28 6e 6f 20 6f 70 65 72 |e acc.* |(no oper|
|00001f60| 61 6e 64 29 2c 20 6f 72 | 20 77 68 61 74 20 69 73 |and), or| what is|
|00001f70| 20 64 65 73 63 72 69 62 | 65 64 20 62 79 20 74 68 | describ|ed by th|
|00001f80| 65 20 6f 70 65 72 61 6e | 64 2e 20 20 54 68 65 20 |e operan|d. The |
|00001f90| 6f 70 65 72 61 6e 64 20 | 63 61 6e 20 65 69 74 68 |operand |can eith|
|00001fa0| 65 72 0d 2a 20 62 65 20 | 61 6e 20 61 62 73 6f 6c |er.* be |an absol|
|00001fb0| 75 74 65 20 6f 72 20 61 | 20 76 61 6c 75 65 20 69 |ute or a| value i|
|00001fc0| 6e 20 6d 65 6d 6f 72 79 | 2e 20 20 50 72 69 6e 74 |n memory|. Print|
|00001fd0| 69 6e 67 20 68 65 78 20 | 6e 75 6d 62 65 72 73 20 |ing hex |numbers |
|00001fe0| 69 73 20 61 66 66 65 63 | 74 65 64 20 62 79 0d 2a |is affec|ted by.*|
|00001ff0| 20 74 68 69 73 2e 0d 09 | 4d 41 43 52 4f 0d 26 6c | this...|MACRO.&l|
|00002000| 61 62 09 5f 68 65 78 70 | 61 64 09 26 6f 70 0d 26 |ab._hexp|ad.&op.&|
|00002010| 6c 61 62 09 0d 09 69 66 | 09 26 6f 70 3d 27 27 20 |lab...if|.&op='' |
|00002020| 67 6f 74 6f 20 2e 6a 73 | 72 0d 09 61 63 6f 72 6d |goto .js|r..acorm|
|00002030| 09 26 6f 70 0d 2e 6a 73 | 72 09 6a 73 72 09 68 65 |.&op..js|r.jsr.he|
|00002040| 78 70 61 64 0d 09 4d 45 | 4e 44 0d 0d 0d 2a 2a 2a |xpad..ME|ND...***|
|00002050| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002060| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002070| 2a 2a 2a 2a 0d 0d 0d 2a | 20 54 68 69 73 20 6d 61 |****...*| This ma|
|00002080| 63 72 6f 20 73 65 74 73 | 20 6e 6f 20 70 61 64 20 |cro sets| no pad |
|00002090| 6d 6f 64 65 20 66 6f 72 | 20 68 65 78 2e 20 20 50 |mode for| hex. P|
|000020a0| 72 69 6e 74 69 6e 67 20 | 68 65 78 20 6e 75 6d 62 |rinting |hex numb|
|000020b0| 65 72 73 20 69 73 20 61 | 66 66 65 63 74 65 64 20 |ers is a|ffected |
|000020c0| 62 79 0d 2a 20 74 68 69 | 73 2e 0d 09 4d 41 43 52 |by.* thi|s...MACR|
|000020d0| 4f 0d 26 6c 61 62 09 5f | 68 65 78 6e 6f 70 61 64 |O.&lab._|hexnopad|
|000020e0| 0d 26 6c 61 62 09 6a 73 | 72 09 68 65 78 6e 6f 70 |.&lab.js|r.hexnop|
|000020f0| 61 64 0d 09 4d 45 4e 44 | 0d 0d 0d 2a 2a 2a 2a 2a |ad..MEND|...*****|
|00002100| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002110| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002120| 2a 2a 0d 0d 0d 2a 20 54 | 68 69 73 20 6d 61 63 72 |**...* T|his macr|
|00002130| 6f 20 70 72 69 6e 74 73 | 20 61 20 31 2d 62 79 74 |o prints| a 1-byt|
|00002140| 65 20 68 65 78 20 76 61 | 6c 75 65 2e 20 20 54 68 |e hex va|lue. Th|
|00002150| 69 73 20 76 61 6c 75 65 | 20 69 73 20 65 69 74 68 |is value| is eith|
|00002160| 65 72 20 61 6c 72 65 61 | 64 79 20 69 6e 20 74 68 |er alrea|dy in th|
|00002170| 65 0d 2a 20 61 63 63 20 | 28 6e 6f 20 6f 70 65 72 |e.* acc |(no oper|
|00002180| 61 6e 64 29 2c 20 6f 72 | 20 77 68 61 74 20 69 73 |and), or| what is|
|00002190| 20 64 65 73 63 72 69 62 | 65 64 20 62 79 20 74 68 | describ|ed by th|
|000021a0| 65 20 6f 70 65 72 61 6e | 64 2e 20 20 54 68 65 20 |e operan|d. The |
|000021b0| 6f 70 65 72 61 6e 64 20 | 63 61 6e 0d 2a 20 65 69 |operand |can.* ei|
|000021c0| 74 68 65 72 20 62 65 20 | 61 6e 20 61 62 73 6f 6c |ther be |an absol|
|000021d0| 75 74 65 20 6f 72 20 61 | 20 76 61 6c 75 65 20 69 |ute or a| value i|
|000021e0| 6e 20 6d 65 6d 6f 72 79 | 2e 0d 09 4d 41 43 52 4f |n memory|...MACRO|
|000021f0| 0d 26 6c 61 62 09 5f 68 | 65 78 6f 75 74 6c 09 26 |.&lab._h|exoutl.&|
|00002200| 6f 70 0d 26 6c 61 62 09 | 0d 09 69 66 09 26 6f 70 |op.&lab.|..if.&op|
|00002210| 3d 27 27 20 67 6f 74 6f | 20 2e 6a 73 72 0d 09 61 |='' goto| .jsr..a|
|00002220| 63 6f 72 6d 09 26 6f 70 | 0d 2e 6a 73 72 09 6a 73 |corm.&op|..jsr.js|
|00002230| 72 09 68 65 78 6f 75 74 | 6c 0d 09 4d 45 4e 44 0d |r.hexout|l..MEND.|
|00002240| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00002250| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002260| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 0d 0d 2a 20 54 68 |********|*...* Th|
|00002270| 69 73 20 6d 61 63 72 6f | 20 70 72 69 6e 74 73 20 |is macro| prints |
|00002280| 61 20 32 2d 62 79 74 65 | 20 68 65 78 20 76 61 6c |a 2-byte| hex val|
|00002290| 75 65 2e 20 20 54 68 69 | 73 20 76 61 6c 75 65 20 |ue. Thi|s value |
|000022a0| 69 73 20 73 74 6f 72 65 | 64 20 69 6e 20 61 20 76 |is store|d in a v|
|000022b0| 61 72 69 61 62 6c 65 2e | 0d 2a 20 54 68 65 20 76 |ariable.|.* The v|
|000022c0| 61 72 69 61 62 6c 65 20 | 6e 75 6d 62 65 72 20 69 |ariable |number i|
|000022d0| 73 20 65 69 74 68 65 72 | 20 61 6c 72 65 61 64 79 |s either| already|
|000022e0| 20 69 6e 20 74 68 65 20 | 78 72 65 67 20 28 6e 6f | in the |xreg (no|
|000022f0| 20 6f 70 65 72 61 6e 64 | 29 2c 20 6f 72 20 69 73 | operand|), or is|
|00002300| 0d 2a 20 64 65 74 65 72 | 6d 69 6e 65 64 20 62 79 |.* deter|mined by|
|00002310| 20 74 68 65 20 6f 70 65 | 72 61 6e 64 2e 0d 09 4d | the ope|rand...M|
|00002320| 41 43 52 4f 0d 26 6c 61 | 62 09 5f 76 68 65 78 6f |ACRO.&la|b._vhexo|
|00002330| 75 74 09 26 6f 70 0d 26 | 6c 61 62 09 0d 09 69 66 |ut.&op.&|lab...if|
|00002340| 09 26 6f 70 3d 27 27 20 | 67 6f 74 6f 20 2e 6a 73 |.&op='' |goto .js|
|00002350| 72 0d 09 6c 64 78 09 23 | 3c 26 6f 70 0d 2e 6a 73 |r..ldx.#|<&op..js|
|00002360| 72 09 6a 73 72 09 76 68 | 65 78 6f 75 74 0d 09 4d |r.jsr.vh|exout..M|
|00002370| 45 4e 44 0d 0d 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |END...**|********|
|00002380| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002390| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 0d 0d |********|*****...|
|000023a0| 2a 20 54 68 69 73 20 6d | 61 63 72 6f 20 70 72 69 |* This m|acro pri|
|000023b0| 6e 74 73 20 61 20 32 2d | 62 79 74 65 20 68 65 78 |nts a 2-|byte hex|
|000023c0| 20 76 61 6c 75 65 2e 20 | 20 54 68 69 73 20 76 61 | value. | This va|
|000023d0| 6c 75 65 20 69 73 20 65 | 69 74 68 65 72 20 61 6c |lue is e|ither al|
|000023e0| 72 65 61 64 79 20 69 6e | 20 74 68 65 0d 2a 20 61 |ready in| the.* a|
|000023f0| 63 63 2c 79 20 28 6e 6f | 20 6f 70 65 72 61 6e 64 |cc,y (no| operand|
|00002400| 29 2c 20 6f 72 20 77 68 | 61 74 20 69 73 20 64 65 |), or wh|at is de|
|00002410| 73 63 72 69 62 65 64 20 | 62 79 20 74 68 65 20 6f |scribed |by the o|
|00002420| 70 65 72 61 6e 64 2e 20 | 20 54 68 65 20 6f 70 65 |perand. | The ope|
|00002430| 72 61 6e 64 20 63 61 6e | 0d 2a 20 65 69 74 68 65 |rand can|.* eithe|
|00002440| 72 20 62 65 20 61 6e 20 | 61 62 73 6f 6c 75 74 65 |r be an |absolute|
|00002450| 20 6f 72 20 61 20 76 61 | 6c 75 65 20 69 6e 20 6d | or a va|lue in m|
|00002460| 65 6d 6f 72 79 2e 0d 09 | 4d 41 43 52 4f 0d 26 6c |emory...|MACRO.&l|
|00002470| 61 62 09 5f 68 65 78 6f | 75 74 09 26 6f 70 0d 26 |ab._hexo|ut.&op.&|
|00002480| 6c 61 62 09 0d 09 69 66 | 09 26 6f 70 3d 27 27 20 |lab...if|.&op='' |
|00002490| 67 6f 74 6f 20 2e 6a 73 | 72 0d 09 61 79 63 6f 72 |goto .js|r..aycor|
|000024a0| 6d 09 26 6f 70 0d 2e 6a | 73 72 09 6a 73 72 09 68 |m.&op..j|sr.jsr.h|
|000024b0| 65 78 6f 75 74 0d 09 4d | 45 4e 44 0d 0d 0d 2a 2a |exout..M|END...**|
|000024c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000024d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000024e0| 2a 2a 2a 2a 2a 0d 0d 0d | 2a 20 54 68 69 73 20 6d |*****...|* This m|
|000024f0| 61 63 72 6f 20 61 64 64 | 73 20 61 20 76 61 72 69 |acro add|s a vari|
|00002500| 61 62 6c 65 20 74 6f 20 | 74 68 65 20 64 65 73 74 |able to |the dest|
|00002510| 69 6e 61 74 69 6f 6e 20 | 76 61 72 69 61 62 6c 65 |ination |variable|
|00002520| 2e 20 20 49 66 20 74 68 | 65 72 65 20 69 73 20 6e |. If th|ere is n|
|00002530| 6f 0d 2a 20 6f 70 31 2c | 20 74 68 65 6e 20 74 68 |o.* op1,| then th|
|00002540| 65 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 76 61 |e destin|ation va|
|00002550| 72 69 61 62 6c 65 20 6e | 75 6d 62 65 72 20 69 73 |riable n|umber is|
|00002560| 20 61 73 73 75 6d 65 64 | 20 74 6f 20 62 65 20 69 | assumed| to be i|
|00002570| 6e 20 74 68 65 20 78 72 | 65 67 2e 0d 2a 20 49 66 |n the xr|eg..* If|
|00002580| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 6f 70 32 | there i|s no op2|
|00002590| 2c 20 74 68 65 6e 20 74 | 68 65 20 73 6f 75 72 63 |, then t|he sourc|
|000025a0| 65 20 76 61 72 69 61 62 | 6c 65 20 6e 75 6d 62 65 |e variab|le numbe|
|000025b0| 72 20 69 73 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |r is ass|umed to |
|000025c0| 62 65 20 69 6e 0d 2a 20 | 74 68 65 20 79 72 65 67 |be in.* |the yreg|
|000025d0| 2e 0d 09 4d 41 43 52 4f | 0d 26 6c 61 62 09 5f 61 |...MACRO|.&lab._a|
|000025e0| 64 64 76 61 72 09 26 6f | 70 31 2c 26 6f 70 32 0d |ddvar.&o|p1,&op2.|
|000025f0| 26 6c 61 62 0d 09 69 66 | 09 26 6f 70 31 3d 27 27 |&lab..if|.&op1=''|
|00002600| 20 67 6f 74 6f 20 2e 61 | 0d 09 6c 64 78 09 23 3c | goto .a|..ldx.#<|
|00002610| 26 6f 70 31 0d 2e 61 09 | 69 66 09 26 6f 70 32 3d |&op1..a.|if.&op2=|
|00002620| 27 27 20 67 6f 74 6f 20 | 2e 6a 73 72 0d 09 6c 64 |'' goto |.jsr..ld|
|00002630| 79 09 23 3c 26 6f 70 32 | 0d 2e 6a 73 72 09 6a 73 |y.#<&op2|..jsr.js|
|00002640| 72 09 61 64 64 76 61 72 | 0d 09 6d 65 6e 64 0d 0d |r.addvar|..mend..|
|00002650| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00002660| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002670| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 0d 2a 20 54 68 69 |********|...* Thi|
|00002680| 73 20 6d 61 63 72 6f 20 | 61 64 64 73 20 61 20 31 |s macro |adds a 1|
|00002690| 2d 62 79 74 65 20 76 61 | 6c 75 65 20 74 6f 20 74 |-byte va|lue to t|
|000026a0| 68 65 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 76 |he desti|nation v|
|000026b0| 61 72 69 61 62 6c 65 2e | 20 20 49 66 20 74 68 65 |ariable.| If the|
|000026c0| 72 65 20 69 73 0d 2a 20 | 6e 6f 20 6f 70 31 2c 20 |re is.* |no op1, |
|000026d0| 74 68 65 6e 20 74 68 65 | 20 64 65 73 74 69 6e 61 |then the| destina|
|000026e0| 74 69 6f 6e 20 76 61 72 | 69 61 62 6c 65 20 6e 75 |tion var|iable nu|
|000026f0| 6d 62 65 72 20 69 73 20 | 61 73 73 75 6d 65 64 20 |mber is |assumed |
|00002700| 74 6f 20 62 65 20 69 6e | 20 74 68 65 20 78 72 65 |to be in| the xre|
|00002710| 67 2e 0d 2a 20 49 66 20 | 74 68 65 72 65 20 69 73 |g..* If |there is|
|00002720| 20 6e 6f 20 6f 70 32 2c | 20 74 68 65 6e 20 74 68 | no op2,| then th|
|00002730| 65 20 76 61 6c 75 65 20 | 69 73 20 61 73 73 75 6d |e value |is assum|
|00002740| 65 64 20 74 6f 20 62 65 | 20 69 6e 20 74 68 65 20 |ed to be| in the |
|00002750| 61 63 63 2e 0d 09 4d 41 | 43 52 4f 0d 26 6c 61 62 |acc...MA|CRO.&lab|
|00002760| 09 5f 61 64 64 6c 09 26 | 6f 70 31 2c 26 6f 70 32 |._addl.&|op1,&op2|
|00002770| 0d 26 6c 61 62 0d 09 69 | 66 09 26 6f 70 31 3d 27 |.&lab..i|f.&op1='|
|00002780| 27 20 67 6f 74 6f 20 2e | 61 0d 09 6c 64 78 09 23 |' goto .|a..ldx.#|
|00002790| 3c 26 6f 70 31 0d 2e 61 | 09 69 66 09 26 6f 70 32 |<&op1..a|.if.&op2|
|000027a0| 3d 27 27 20 67 6f 74 6f | 20 2e 6a 73 72 0d 09 61 |='' goto| .jsr..a|
|000027b0| 63 6f 72 6d 09 26 6f 70 | 32 0d 2e 6a 73 72 09 6a |corm.&op|2..jsr.j|
|000027c0| 73 72 09 61 64 64 63 6f | 6e 6c 0d 09 6d 65 6e 64 |sr.addco|nl..mend|
|000027d0| 0d 0d 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...*****|********|
|000027e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000027f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 0d 2a 20 54 |********|**...* T|
|00002800| 68 69 73 20 6d 61 63 72 | 6f 20 61 64 64 73 20 61 |his macr|o adds a|
|00002810| 20 32 2d 62 79 74 65 20 | 76 61 6c 75 65 20 74 6f | 2-byte |value to|
|00002820| 20 74 68 65 20 64 65 73 | 74 69 6e 61 74 69 6f 6e | the des|tination|
|00002830| 20 76 61 72 69 61 62 6c | 65 2e 20 20 49 66 20 74 | variabl|e. If t|
|00002840| 68 65 72 65 20 69 73 0d | 2a 20 6e 6f 20 6f 70 31 |here is.|* no op1|
|00002850| 2c 20 74 68 65 6e 20 74 | 68 65 20 64 65 73 74 69 |, then t|he desti|
|00002860| 6e 61 74 69 6f 6e 20 76 | 61 72 69 61 62 6c 65 20 |nation v|ariable |
|00002870| 6e 75 6d 62 65 72 20 69 | 73 20 61 73 73 75 6d 65 |number i|s assume|
|00002880| 64 20 74 6f 20 62 65 20 | 69 6e 20 74 68 65 20 78 |d to be |in the x|
|00002890| 72 65 67 2e 0d 2a 20 49 | 66 20 74 68 65 72 65 20 |reg..* I|f there |
|000028a0| 69 73 20 6e 6f 20 6f 70 | 32 2c 20 74 68 65 6e 20 |is no op|2, then |
|000028b0| 74 68 65 20 76 61 6c 75 | 65 20 69 73 20 61 73 73 |the valu|e is ass|
|000028c0| 75 6d 65 64 20 74 6f 20 | 62 65 20 69 6e 20 61 63 |umed to |be in ac|
|000028d0| 63 2c 79 2e 20 20 61 79 | 63 6f 72 6d 20 77 6f 72 |c,y. ay|corm wor|
|000028e0| 6b 73 0d 2a 20 6c 69 6b | 65 20 61 63 6f 72 6d 2c |ks.* lik|e acorm,|
|000028f0| 20 65 78 63 65 70 74 20 | 66 6f 72 20 62 6f 74 68 | except |for both|
|00002900| 20 74 68 65 20 61 63 63 | 20 61 6e 64 20 79 72 65 | the acc| and yre|
|00002910| 67 2e 0d 09 4d 41 43 52 | 4f 0d 26 6c 61 62 09 5f |g...MACR|O.&lab._|
|00002920| 61 64 64 09 26 6f 70 31 | 2c 26 6f 70 32 0d 26 6c |add.&op1|,&op2.&l|
|00002930| 61 62 0d 09 69 66 09 26 | 6f 70 31 3d 27 27 20 67 |ab..if.&|op1='' g|
|00002940| 6f 74 6f 20 2e 61 0d 09 | 6c 64 78 09 23 3c 26 6f |oto .a..|ldx.#<&o|
|00002950| 70 31 0d 2e 61 09 69 66 | 09 26 6f 70 32 3d 27 27 |p1..a.if|.&op2=''|
|00002960| 20 67 6f 74 6f 20 2e 6a | 73 72 0d 09 61 79 63 6f | goto .j|sr..ayco|
|00002970| 72 6d 09 26 6f 70 32 0d | 2e 6a 73 72 09 6a 73 72 |rm.&op2.|.jsr.jsr|
|00002980| 09 61 64 64 63 6f 6e 0d | 09 6d 65 6e 64 0d 0d 0d |.addcon.|.mend...|
|00002990| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000029a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000029b0| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 0d 2a 20 54 68 69 73 |*******.|..* This|
|000029c0| 20 6d 61 63 72 6f 20 73 | 75 62 74 72 61 63 74 73 | macro s|ubtracts|
|000029d0| 20 61 20 76 61 72 69 61 | 62 6c 65 20 66 72 6f 6d | a varia|ble from|
|000029e0| 20 74 68 65 20 64 65 73 | 74 69 6e 61 74 69 6f 6e | the des|tination|
|000029f0| 20 76 61 72 69 61 62 6c | 65 2e 20 20 49 66 20 74 | variabl|e. If t|
|00002a00| 68 65 72 65 20 69 73 0d | 2a 20 6e 6f 20 6f 70 31 |here is.|* no op1|
|00002a10| 2c 20 74 68 65 6e 20 74 | 68 65 20 64 65 73 74 69 |, then t|he desti|
|00002a20| 6e 61 74 69 6f 6e 20 76 | 61 72 69 61 62 6c 65 20 |nation v|ariable |
|00002a30| 6e 75 6d 62 65 72 20 69 | 73 20 61 73 73 75 6d 65 |number i|s assume|
|00002a40| 64 20 74 6f 20 62 65 20 | 69 6e 20 74 68 65 20 78 |d to be |in the x|
|00002a50| 72 65 67 2e 0d 2a 20 49 | 66 20 74 68 65 72 65 20 |reg..* I|f there |
|00002a60| 69 73 20 6e 6f 20 6f 70 | 32 2c 20 74 68 65 6e 20 |is no op|2, then |
|00002a70| 74 68 65 20 73 6f 75 72 | 63 65 20 76 61 72 69 61 |the sour|ce varia|
|00002a80| 62 6c 65 20 6e 75 6d 62 | 65 72 20 69 73 20 61 73 |ble numb|er is as|
|00002a90| 73 75 6d 65 64 20 74 6f | 20 62 65 20 69 6e 0d 2a |sumed to| be in.*|
|00002aa0| 20 74 68 65 20 79 72 65 | 67 2e 0d 09 4d 41 43 52 | the yre|g...MACR|
|00002ab0| 4f 0d 26 6c 61 62 09 5f | 73 75 62 76 61 72 09 26 |O.&lab._|subvar.&|
|00002ac0| 6f 70 31 2c 26 6f 70 32 | 0d 26 6c 61 62 0d 09 69 |op1,&op2|.&lab..i|
|00002ad0| 66 09 26 6f 70 31 3d 27 | 27 20 67 6f 74 6f 20 2e |f.&op1='|' goto .|
|00002ae0| 61 0d 09 6c 64 78 09 23 | 3c 26 6f 70 31 0d 2e 61 |a..ldx.#|<&op1..a|
|00002af0| 09 69 66 09 26 6f 70 32 | 3d 27 27 20 67 6f 74 6f |.if.&op2|='' goto|
|00002b00| 20 2e 6a 73 72 0d 09 6c | 64 79 09 23 3c 26 6f 70 | .jsr..l|dy.#<&op|
|00002b10| 32 0d 2e 6a 73 72 09 6a | 73 72 09 73 75 62 76 61 |2..jsr.j|sr.subva|
|00002b20| 72 0d 09 6d 65 6e 64 0d | 0d 0d 2a 2a 2a 2a 2a 2a |r..mend.|..******|
|00002b30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002b40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002b50| 2a 0d 0d 0d 2a 20 54 68 | 69 73 20 6d 61 63 72 6f |*...* Th|is macro|
|00002b60| 20 73 75 62 74 72 61 63 | 74 73 20 61 20 31 2d 62 | subtrac|ts a 1-b|
|00002b70| 79 74 65 20 76 61 6c 75 | 65 20 66 72 6f 6d 20 74 |yte valu|e from t|
|00002b80| 68 65 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 76 |he desti|nation v|
|00002b90| 61 72 69 61 62 6c 65 2e | 20 20 49 66 20 74 68 65 |ariable.| If the|
|00002ba0| 72 65 0d 2a 20 69 73 20 | 6e 6f 20 6f 70 31 2c 20 |re.* is |no op1, |
|00002bb0| 74 68 65 6e 20 74 68 65 | 20 64 65 73 74 69 6e 61 |then the| destina|
|00002bc0| 74 69 6f 6e 20 76 61 72 | 69 61 62 6c 65 20 6e 75 |tion var|iable nu|
|00002bd0| 6d 62 65 72 20 69 73 20 | 61 73 73 75 6d 65 64 20 |mber is |assumed |
|00002be0| 74 6f 20 62 65 20 69 6e | 20 74 68 65 20 78 72 65 |to be in| the xre|
|00002bf0| 67 2e 0d 2a 20 49 66 20 | 74 68 65 72 65 20 69 73 |g..* If |there is|
|00002c00| 20 6e 6f 20 6f 70 32 2c | 20 74 68 65 6e 20 74 68 | no op2,| then th|
|00002c10| 65 20 76 61 6c 75 65 20 | 69 73 20 61 73 73 75 6d |e value |is assum|
|00002c20| 65 64 20 74 6f 20 62 65 | 20 69 6e 20 74 68 65 20 |ed to be| in the |
|00002c30| 61 63 63 2e 0d 09 4d 41 | 43 52 4f 0d 26 6c 61 62 |acc...MA|CRO.&lab|
|00002c40| 09 5f 73 75 62 6c 09 26 | 6f 70 31 2c 26 6f 70 32 |._subl.&|op1,&op2|
|00002c50| 0d 26 6c 61 62 0d 09 69 | 66 09 26 6f 70 31 3d 27 |.&lab..i|f.&op1='|
|00002c60| 27 20 67 6f 74 6f 20 2e | 61 0d 09 6c 64 78 09 23 |' goto .|a..ldx.#|
|00002c70| 3c 26 6f 70 31 0d 2e 61 | 09 69 66 09 26 6f 70 32 |<&op1..a|.if.&op2|
|00002c80| 3d 27 27 20 67 6f 74 6f | 20 2e 6a 73 72 0d 09 61 |='' goto| .jsr..a|
|00002c90| 63 6f 72 6d 09 26 6f 70 | 32 0d 2e 6a 73 72 09 6a |corm.&op|2..jsr.j|
|00002ca0| 73 72 09 73 75 62 63 6f | 6e 6c 0d 09 6d 65 6e 64 |sr.subco|nl..mend|
|00002cb0| 0d 0d 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...*****|********|
|00002cc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002cd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 0d 2a 20 54 |********|**...* T|
|00002ce0| 68 69 73 20 6d 61 63 72 | 6f 20 73 75 62 74 72 61 |his macr|o subtra|
|00002cf0| 63 74 73 20 61 20 32 2d | 62 79 74 65 20 76 61 6c |cts a 2-|byte val|
|00002d00| 75 65 20 66 72 6f 6d 20 | 74 68 65 20 64 65 73 74 |ue from |the dest|
|00002d10| 69 6e 61 74 69 6f 6e 20 | 76 61 72 69 61 62 6c 65 |ination |variable|
|00002d20| 2e 20 20 49 66 20 74 68 | 65 72 65 0d 2a 20 69 73 |. If th|ere.* is|
|00002d30| 20 6e 6f 20 6f 70 31 2c | 20 74 68 65 6e 20 74 68 | no op1,| then th|
|00002d40| 65 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 76 61 |e destin|ation va|
|00002d50| 72 69 61 62 6c 65 20 6e | 75 6d 62 65 72 20 69 73 |riable n|umber is|
|00002d60| 20 61 73 73 75 6d 65 64 | 20 74 6f 20 62 65 20 69 | assumed| to be i|
|00002d70| 6e 20 74 68 65 20 78 72 | 65 67 2e 0d 2a 20 49 66 |n the xr|eg..* If|
|00002d80| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 6f 70 32 | there i|s no op2|
|00002d90| 2c 20 74 68 65 6e 20 74 | 68 65 20 76 61 6c 75 65 |, then t|he value|
|00002da0| 20 69 73 20 61 73 73 75 | 6d 65 64 20 74 6f 20 62 | is assu|med to b|
|00002db0| 65 20 69 6e 20 61 63 63 | 2c 79 2e 20 20 61 79 63 |e in acc|,y. ayc|
|00002dc0| 6f 72 6d 20 77 6f 72 6b | 73 0d 2a 20 6c 69 6b 65 |orm work|s.* like|
|00002dd0| 20 61 63 6f 72 6d 2c 20 | 65 78 63 65 70 74 20 66 | acorm, |except f|
|00002de0| 6f 72 20 62 6f 74 68 20 | 74 68 65 20 61 63 63 20 |or both |the acc |
|00002df0| 61 6e 64 20 79 72 65 67 | 2e 0d 09 4d 41 43 52 4f |and yreg|...MACRO|
|00002e00| 0d 26 6c 61 62 09 5f 73 | 75 62 09 26 6f 70 31 2c |.&lab._s|ub.&op1,|
|00002e10| 26 6f 70 32 0d 26 6c 61 | 62 0d 09 69 66 09 26 6f |&op2.&la|b..if.&o|
|00002e20| 70 31 3d 27 27 20 67 6f | 74 6f 20 2e 61 0d 09 6c |p1='' go|to .a..l|
|00002e30| 64 78 09 23 3c 26 6f 70 | 31 0d 2e 61 09 69 66 09 |dx.#<&op|1..a.if.|
|00002e40| 26 6f 70 32 3d 27 27 20 | 67 6f 74 6f 20 2e 6a 73 |&op2='' |goto .js|
|00002e50| 72 0d 09 61 79 63 6f 72 | 6d 09 26 6f 70 32 0d 2e |r..aycor|m.&op2..|
|00002e60| 6a 73 72 09 6a 73 72 09 | 73 75 62 63 6f 6e 0d 09 |jsr.jsr.|subcon..|
|00002e70| 6d 65 6e 64 0d 0d 0d 2a | 2a 2a 2a 2a 2a 2a 2a 2a |mend...*|********|
|00002e80| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002e90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 0d 0d |********|******..|
|00002ea0| 0d 2a 20 54 68 69 73 20 | 6d 61 63 72 6f 20 6d 75 |.* This |macro mu|
|00002eb0| 6c 74 69 70 6c 69 65 73 | 20 74 68 65 20 64 65 73 |ltiplies| the des|
|00002ec0| 74 69 6e 61 74 69 6f 6e | 20 76 61 72 69 61 62 6c |tination| variabl|
|00002ed0| 65 20 62 79 20 61 20 76 | 61 72 69 61 62 6c 65 2e |e by a v|ariable.|
|00002ee0| 20 20 49 66 20 74 68 65 | 72 65 20 69 73 0d 2a 20 | If the|re is.* |
|00002ef0| 6e 6f 20 6f 70 31 2c 20 | 74 68 65 6e 20 74 68 65 |no op1, |then the|
|00002f00| 20 64 65 73 74 69 6e 61 | 74 69 6f 6e 20 76 61 72 | destina|tion var|
|00002f10| 69 61 62 6c 65 20 6e 75 | 6d 62 65 72 20 69 73 20 |iable nu|mber is |
|00002f20| 61 73 73 75 6d 65 64 20 | 74 6f 20 62 65 20 69 6e |assumed |to be in|
|00002f30| 20 74 68 65 20 78 72 65 | 67 2e 0d 2a 20 49 66 20 | the xre|g..* If |
|00002f40| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 6f 70 32 2c |there is| no op2,|
|00002f50| 20 74 68 65 6e 20 74 68 | 65 20 73 6f 75 72 63 65 | then th|e source|
|00002f60| 20 76 61 72 69 61 62 6c | 65 20 6e 75 6d 62 65 72 | variabl|e number|
|00002f70| 20 69 73 20 61 73 73 75 | 6d 65 64 20 74 6f 20 62 | is assu|med to b|
|00002f80| 65 20 69 6e 0d 2a 20 74 | 68 65 20 79 72 65 67 2e |e in.* t|he yreg.|
|00002f90| 0d 09 4d 41 43 52 4f 0d | 26 6c 61 62 09 5f 6d 75 |..MACRO.|&lab._mu|
|00002fa0| 6c 76 61 72 09 26 6f 70 | 31 2c 26 6f 70 32 0d 26 |lvar.&op|1,&op2.&|
|00002fb0| 6c 61 62 0d 09 69 66 09 | 26 6f 70 31 3d 27 27 20 |lab..if.|&op1='' |
|00002fc0| 67 6f 74 6f 20 2e 61 0d | 09 6c 64 78 09 23 3c 26 |goto .a.|.ldx.#<&|
|00002fd0| 6f 70 31 0d 2e 61 09 69 | 66 09 26 6f 70 32 3d 27 |op1..a.i|f.&op2='|
|00002fe0| 27 20 67 6f 74 6f 20 2e | 6a 73 72 0d 09 6c 64 79 |' goto .|jsr..ldy|
|00002ff0| 09 23 3c 26 6f 70 32 0d | 2e 6a 73 72 09 6a 73 72 |.#<&op2.|.jsr.jsr|
|00003000| 09 6d 75 6c 76 61 72 0d | 09 6d 65 6e 64 0d 0d 0d |.mulvar.|.mend...|
|00003010| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003020| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003030| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 0d 2a 20 54 68 69 73 |*******.|..* This|
|00003040| 20 6d 61 63 72 6f 20 6d | 75 6c 74 69 70 6c 69 65 | macro m|ultiplie|
|00003050| 73 20 74 68 65 20 64 65 | 73 74 69 6e 61 74 69 6f |s the de|stinatio|
|00003060| 6e 20 76 61 72 69 61 62 | 6c 65 20 62 79 20 61 20 |n variab|le by a |
|00003070| 31 2d 62 79 74 65 20 76 | 61 6c 75 65 2e 20 20 49 |1-byte v|alue. I|
|00003080| 66 20 74 68 65 72 65 0d | 2a 20 69 73 20 6e 6f 20 |f there.|* is no |
|00003090| 6f 70 31 2c 20 74 68 65 | 6e 20 74 68 65 20 64 65 |op1, the|n the de|
|000030a0| 73 74 69 6e 61 74 69 6f | 6e 20 76 61 72 69 61 62 |stinatio|n variab|
|000030b0| 6c 65 20 6e 75 6d 62 65 | 72 20 69 73 20 61 73 73 |le numbe|r is ass|
|000030c0| 75 6d 65 64 20 74 6f 20 | 62 65 20 69 6e 20 74 68 |umed to |be in th|
|000030d0| 65 20 78 72 65 67 2e 0d | 2a 20 49 66 20 74 68 65 |e xreg..|* If the|
|000030e0| 72 65 20 69 73 20 6e 6f | 20 6f 70 32 2c 20 74 68 |re is no| op2, th|
|000030f0| 65 6e 20 74 68 65 20 76 | 61 6c 75 65 20 69 73 20 |en the v|alue is |
|00003100| 61 73 73 75 6d 65 64 20 | 74 6f 20 62 65 20 69 6e |assumed |to be in|
|00003110| 20 74 68 65 20 61 63 63 | 2e 0d 09 4d 41 43 52 4f | the acc|...MACRO|
|00003120| 0d 26 6c 61 62 09 5f 6d | 75 6c 6c 09 26 6f 70 31 |.&lab._m|ull.&op1|
|00003130| 2c 26 6f 70 32 0d 26 6c | 61 62 0d 09 69 66 09 26 |,&op2.&l|ab..if.&|
|00003140| 6f 70 31 3d 27 27 20 67 | 6f 74 6f 20 2e 61 0d 09 |op1='' g|oto .a..|
|00003150| 6c 64 78 09 23 3c 26 6f | 70 31 0d 2e 61 09 69 66 |ldx.#<&o|p1..a.if|
|00003160| 09 26 6f 70 32 3d 27 27 | 20 67 6f 74 6f 20 2e 6a |.&op2=''| goto .j|
|00003170| 73 72 0d 09 61 63 6f 72 | 6d 09 26 6f 70 32 0d 2e |sr..acor|m.&op2..|
|00003180| 6a 73 72 09 6a 73 72 09 | 6d 75 6c 63 6f 6e 6c 0d |jsr.jsr.|mulconl.|
|00003190| 09 6d 65 6e 64 0d 0d 0d | 2a 2a 2a 2a 2a 2a 2a 2a |.mend...|********|
|000031a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000031b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|000031c0| 0d 0d 2a 20 54 68 69 73 | 20 6d 61 63 72 6f 20 6d |..* This| macro m|
|000031d0| 75 6c 74 69 70 6c 69 65 | 73 20 74 68 65 20 64 65 |ultiplie|s the de|
|000031e0| 73 74 69 6e 61 74 69 6f | 6e 20 76 61 72 69 61 62 |stinatio|n variab|
|000031f0| 6c 65 20 62 79 20 61 20 | 32 2d 62 79 74 65 20 76 |le by a |2-byte v|
|00003200| 61 6c 75 65 2e 20 20 49 | 66 20 74 68 65 72 65 0d |alue. I|f there.|
|00003210| 2a 20 69 73 20 6e 6f 20 | 6f 70 31 2c 20 74 68 65 |* is no |op1, the|
|00003220| 6e 20 74 68 65 20 64 65 | 73 74 69 6e 61 74 69 6f |n the de|stinatio|
|00003230| 6e 20 76 61 72 69 61 62 | 6c 65 20 6e 75 6d 62 65 |n variab|le numbe|
|00003240| 72 20 69 73 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |r is ass|umed to |
|00003250| 62 65 20 69 6e 20 74 68 | 65 20 78 72 65 67 2e 0d |be in th|e xreg..|
|00003260| 2a 20 49 66 20 74 68 65 | 72 65 20 69 73 20 6e 6f |* If the|re is no|
|00003270| 20 6f 70 32 2c 20 74 68 | 65 6e 20 74 68 65 20 76 | op2, th|en the v|
|00003280| 61 6c 75 65 20 69 73 20 | 61 73 73 75 6d 65 64 20 |alue is |assumed |
|00003290| 74 6f 20 62 65 20 69 6e | 20 61 63 63 2c 79 2e 20 |to be in| acc,y. |
|000032a0| 20 61 79 63 6f 72 6d 20 | 77 6f 72 6b 73 0d 2a 20 | aycorm |works.* |
|000032b0| 6c 69 6b 65 20 61 63 6f | 72 6d 2c 20 65 78 63 65 |like aco|rm, exce|
|000032c0| 70 74 20 66 6f 72 20 62 | 6f 74 68 20 74 68 65 20 |pt for b|oth the |
|000032d0| 61 63 63 20 61 6e 64 20 | 79 72 65 67 2e 0d 09 4d |acc and |yreg...M|
|000032e0| 41 43 52 4f 0d 26 6c 61 | 62 09 5f 6d 75 6c 09 26 |ACRO.&la|b._mul.&|
|000032f0| 6f 70 31 2c 26 6f 70 32 | 0d 26 6c 61 62 0d 09 69 |op1,&op2|.&lab..i|
|00003300| 66 09 26 6f 70 31 3d 27 | 27 20 67 6f 74 6f 20 2e |f.&op1='|' goto .|
|00003310| 61 0d 09 6c 64 78 09 23 | 3c 26 6f 70 31 0d 2e 61 |a..ldx.#|<&op1..a|
|00003320| 09 69 66 09 26 6f 70 32 | 3d 27 27 20 67 6f 74 6f |.if.&op2|='' goto|
|00003330| 20 2e 6a 73 72 0d 09 61 | 79 63 6f 72 6d 09 26 6f | .jsr..a|ycorm.&o|
|00003340| 70 32 0d 2e 6a 73 72 09 | 6a 73 72 09 6d 75 6c 63 |p2..jsr.|jsr.mulc|
|00003350| 6f 6e 0d 09 6d 65 6e 64 | 0d 0d 0d 2a 2a 2a 2a 2a |on..mend|...*****|
|00003360| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003370| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003380| 2a 2a 0d 0d 0d 2a 20 54 | 68 69 73 20 6d 61 63 72 |**...* T|his macr|
|00003390| 6f 20 64 69 76 69 64 65 | 73 20 74 68 65 20 64 65 |o divide|s the de|
|000033a0| 73 74 69 6e 61 74 69 6f | 6e 20 76 61 72 69 61 62 |stinatio|n variab|
|000033b0| 6c 65 20 62 79 20 61 20 | 76 61 72 69 61 62 6c 65 |le by a |variable|
|000033c0| 2e 20 20 49 66 20 74 68 | 65 72 65 20 69 73 0d 2a |. If th|ere is.*|
|000033d0| 20 6e 6f 20 6f 70 31 2c | 20 74 68 65 6e 20 74 68 | no op1,| then th|
|000033e0| 65 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 76 61 |e destin|ation va|
|000033f0| 72 69 61 62 6c 65 20 6e | 75 6d 62 65 72 20 69 73 |riable n|umber is|
|00003400| 20 61 73 73 75 6d 65 64 | 20 74 6f 20 62 65 20 69 | assumed| to be i|
|00003410| 6e 20 74 68 65 20 78 72 | 65 67 2e 0d 2a 20 49 66 |n the xr|eg..* If|
|00003420| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 6f 70 32 | there i|s no op2|
|00003430| 2c 20 74 68 65 6e 20 74 | 68 65 20 73 6f 75 72 63 |, then t|he sourc|
|00003440| 65 20 76 61 72 69 61 62 | 6c 65 20 6e 75 6d 62 65 |e variab|le numbe|
|00003450| 72 20 69 73 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |r is ass|umed to |
|00003460| 62 65 20 69 6e 0d 2a 20 | 74 68 65 20 79 72 65 67 |be in.* |the yreg|
|00003470| 2e 20 20 54 68 65 20 72 | 65 6d 61 69 6e 64 65 72 |. The r|emainder|
|00003480| 20 66 72 6f 6d 20 74 68 | 65 20 64 69 76 69 64 65 | from th|e divide|
|00003490| 20 69 73 20 69 6e 20 74 | 68 65 20 61 63 63 2c 79 | is in t|he acc,y|
|000034a0| 2e 0d 09 4d 41 43 52 4f | 0d 26 6c 61 62 09 5f 64 |...MACRO|.&lab._d|
|000034b0| 69 76 76 61 72 09 26 6f | 70 31 2c 26 6f 70 32 0d |ivvar.&o|p1,&op2.|
|000034c0| 26 6c 61 62 0d 09 69 66 | 09 26 6f 70 31 3d 27 27 |&lab..if|.&op1=''|
|000034d0| 20 67 6f 74 6f 20 2e 61 | 0d 09 6c 64 78 09 23 3c | goto .a|..ldx.#<|
|000034e0| 26 6f 70 31 0d 2e 61 09 | 69 66 09 26 6f 70 32 3d |&op1..a.|if.&op2=|
|000034f0| 27 27 20 67 6f 74 6f 20 | 2e 6a 73 72 0d 09 6c 64 |'' goto |.jsr..ld|
|00003500| 79 09 23 3c 26 6f 70 32 | 0d 2e 6a 73 72 09 6a 73 |y.#<&op2|..jsr.js|
|00003510| 72 09 64 69 76 76 61 72 | 0d 09 6d 65 6e 64 0d 0d |r.divvar|..mend..|
|00003520| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00003530| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003540| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 0d 2a 20 54 68 69 |********|...* Thi|
|00003550| 73 20 6d 61 63 72 6f 20 | 64 69 76 69 64 65 73 20 |s macro |divides |
|00003560| 74 68 65 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 |the dest|ination |
|00003570| 76 61 72 69 61 62 6c 65 | 20 62 79 20 61 20 31 2d |variable| by a 1-|
|00003580| 62 79 74 65 20 76 61 6c | 75 65 2e 20 20 49 66 20 |byte val|ue. If |
|00003590| 74 68 65 72 65 0d 2a 20 | 69 73 20 6e 6f 20 6f 70 |there.* |is no op|
|000035a0| 31 2c 20 74 68 65 6e 20 | 74 68 65 20 64 65 73 74 |1, then |the dest|
|000035b0| 69 6e 61 74 69 6f 6e 20 | 76 61 72 69 61 62 6c 65 |ination |variable|
|000035c0| 20 6e 75 6d 62 65 72 20 | 69 73 20 61 73 73 75 6d | number |is assum|
|000035d0| 65 64 20 74 6f 20 62 65 | 20 69 6e 20 74 68 65 20 |ed to be| in the |
|000035e0| 78 72 65 67 2e 0d 2a 20 | 49 66 20 74 68 65 72 65 |xreg..* |If there|
|000035f0| 20 69 73 20 6e 6f 20 6f | 70 32 2c 20 74 68 65 6e | is no o|p2, then|
|00003600| 20 74 68 65 20 76 61 6c | 75 65 20 69 73 20 61 73 | the val|ue is as|
|00003610| 73 75 6d 65 64 20 74 6f | 20 62 65 20 69 6e 20 74 |sumed to| be in t|
|00003620| 68 65 20 61 63 63 2e 20 | 20 54 68 65 0d 2a 20 72 |he acc. | The.* r|
|00003630| 65 6d 61 69 6e 64 65 72 | 20 66 72 6f 6d 20 74 68 |emainder| from th|
|00003640| 65 20 64 69 76 69 64 65 | 20 69 73 20 69 6e 20 74 |e divide| is in t|
|00003650| 68 65 20 61 63 63 2c 79 | 2e 0d 09 4d 41 43 52 4f |he acc,y|...MACRO|
|00003660| 0d 26 6c 61 62 09 5f 64 | 69 76 6c 09 26 6f 70 31 |.&lab._d|ivl.&op1|
|00003670| 2c 26 6f 70 32 0d 26 6c | 61 62 0d 09 69 66 09 26 |,&op2.&l|ab..if.&|
|00003680| 6f 70 31 3d 27 27 20 67 | 6f 74 6f 20 2e 61 0d 09 |op1='' g|oto .a..|
|00003690| 6c 64 78 09 23 3c 26 6f | 70 31 0d 2e 61 09 69 66 |ldx.#<&o|p1..a.if|
|000036a0| 09 26 6f 70 32 3d 27 27 | 20 67 6f 74 6f 20 2e 6a |.&op2=''| goto .j|
|000036b0| 73 72 0d 09 61 63 6f 72 | 6d 09 26 6f 70 32 0d 2e |sr..acor|m.&op2..|
|000036c0| 6a 73 72 09 6a 73 72 09 | 64 69 76 63 6f 6e 6c 0d |jsr.jsr.|divconl.|
|000036d0| 09 6d 65 6e 64 0d 0d 0d | 2a 2a 2a 2a 2a 2a 2a 2a |.mend...|********|
|000036e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000036f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|00003700| 0d 0d 2a 20 54 68 69 73 | 20 6d 61 63 72 6f 20 64 |..* This| macro d|
|00003710| 69 76 69 64 65 73 20 74 | 68 65 20 64 65 73 74 69 |ivides t|he desti|
|00003720| 6e 61 74 69 6f 6e 20 76 | 61 72 69 61 62 6c 65 20 |nation v|ariable |
|00003730| 62 79 20 61 20 32 2d 62 | 79 74 65 20 76 61 6c 75 |by a 2-b|yte valu|
|00003740| 65 2e 20 20 49 66 20 74 | 68 65 72 65 0d 2a 20 69 |e. If t|here.* i|
|00003750| 73 20 6e 6f 20 6f 70 31 | 2c 20 74 68 65 6e 20 74 |s no op1|, then t|
|00003760| 68 65 20 64 65 73 74 69 | 6e 61 74 69 6f 6e 20 76 |he desti|nation v|
|00003770| 61 72 69 61 62 6c 65 20 | 6e 75 6d 62 65 72 20 69 |ariable |number i|
|00003780| 73 20 61 73 73 75 6d 65 | 64 20 74 6f 20 62 65 20 |s assume|d to be |
|00003790| 69 6e 20 74 68 65 20 78 | 72 65 67 2e 0d 2a 20 49 |in the x|reg..* I|
|000037a0| 66 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 6f 70 |f there |is no op|
|000037b0| 32 2c 20 74 68 65 6e 20 | 74 68 65 20 76 61 6c 75 |2, then |the valu|
|000037c0| 65 20 69 73 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |e is ass|umed to |
|000037d0| 62 65 20 69 6e 20 61 63 | 63 2c 79 2e 20 20 61 79 |be in ac|c,y. ay|
|000037e0| 63 6f 72 6d 20 77 6f 72 | 6b 73 0d 2a 20 6c 69 6b |corm wor|ks.* lik|
|000037f0| 65 20 61 63 6f 72 6d 2c | 20 65 78 63 65 70 74 20 |e acorm,| except |
|00003800| 66 6f 72 20 62 6f 74 68 | 20 74 68 65 20 61 63 63 |for both| the acc|
|00003810| 20 61 6e 64 20 79 72 65 | 67 2e 20 20 54 68 65 20 | and yre|g. The |
|00003820| 72 65 6d 61 69 6e 64 65 | 72 20 66 72 6f 6d 20 74 |remainde|r from t|
|00003830| 68 65 20 64 69 76 69 64 | 65 0d 2a 20 69 73 20 69 |he divid|e.* is i|
|00003840| 6e 20 74 68 65 20 61 63 | 63 2c 79 2e 0d 09 4d 41 |n the ac|c,y...MA|
|00003850| 43 52 4f 0d 26 6c 61 62 | 09 5f 64 69 76 09 26 6f |CRO.&lab|._div.&o|
|00003860| 70 31 2c 26 6f 70 32 0d | 26 6c 61 62 0d 09 69 66 |p1,&op2.|&lab..if|
|00003870| 09 26 6f 70 31 3d 27 27 | 20 67 6f 74 6f 20 2e 61 |.&op1=''| goto .a|
|00003880| 0d 09 6c 64 78 09 23 3c | 26 6f 70 31 0d 2e 61 09 |..ldx.#<|&op1..a.|
|00003890| 69 66 09 26 6f 70 32 3d | 27 27 20 67 6f 74 6f 20 |if.&op2=|'' goto |
|000038a0| 2e 6a 73 72 0d 09 61 79 | 63 6f 72 6d 09 26 6f 70 |.jsr..ay|corm.&op|
|000038b0| 32 0d 2e 6a 73 72 09 6a | 73 72 09 64 69 76 63 6f |2..jsr.j|sr.divco|
|000038c0| 6e 0d 09 6d 65 6e 64 0d | 0d 0d 2a 2a 2a 2a 2a 2a |n..mend.|..******|
|000038d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000038e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000038f0| 2a 0d 0d 0d 2a 20 54 68 | 69 73 20 6d 61 63 72 6f |*...* Th|is macro|
|00003900| 20 73 65 74 73 20 74 68 | 65 20 63 75 72 72 65 6e | sets th|e curren|
|00003910| 74 20 76 61 72 69 61 62 | 6c 65 2e 20 20 54 68 65 |t variab|le. The|
|00003920| 20 63 75 72 72 65 6e 74 | 20 76 61 72 69 61 62 6c | current| variabl|
|00003930| 65 20 69 73 20 64 65 66 | 69 6e 65 64 20 62 79 0d |e is def|ined by.|
|00003940| 2a 20 61 20 6e 75 6d 62 | 65 72 20 69 6e 20 74 68 |* a numb|er in th|
|00003950| 65 20 78 72 65 67 2e 20 | 20 41 6c 6c 20 72 75 6e |e xreg. | All run|
|00003960| 74 69 6d 65 20 66 75 6e | 63 74 69 6f 6e 73 20 70 |time fun|ctions p|
|00003970| 72 65 73 65 72 76 65 20 | 74 68 65 20 78 72 65 67 |reserve |the xreg|
|00003980| 2c 20 73 6f 20 6d 75 6c | 74 69 70 6c 65 0d 2a 20 |, so mul|tiple.* |
|00003990| 6f 70 65 72 61 74 69 6f | 6e 73 20 63 61 6e 20 62 |operatio|ns can b|
|000039a0| 65 20 64 6f 6e 65 20 74 | 6f 20 74 68 65 20 73 61 |e done t|o the sa|
|000039b0| 6d 65 20 76 61 72 69 61 | 62 6c 65 20 77 69 74 68 |me varia|ble with|
|000039c0| 6f 75 74 20 68 61 76 69 | 6e 67 20 74 6f 20 72 65 |out havi|ng to re|
|000039d0| 6c 6f 61 64 20 74 68 65 | 20 78 72 65 67 0d 2a 20 |load the| xreg.* |
|000039e0| 77 69 74 68 20 74 68 65 | 20 76 61 72 69 61 62 6c |with the| variabl|
|000039f0| 65 20 6e 75 6d 62 65 72 | 2e 0d 09 4d 41 43 52 4f |e number|...MACRO|
|00003a00| 0d 26 6c 61 62 09 5f 76 | 61 72 09 26 6f 70 0d 26 |.&lab._v|ar.&op.&|
|00003a10| 6c 61 62 09 6c 64 78 09 | 23 3c 26 6f 70 0d 09 4d |lab.ldx.|#<&op..M|
|00003a20| 45 4e 44 0d 0d 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |END...**|********|
|00003a30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003a40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 0d 0d |********|*****...|
|00003a50| 2a 20 54 68 69 73 20 6d | 61 63 72 6f 20 73 65 74 |* This m|acro set|
|00003a60| 73 20 61 20 76 61 72 69 | 61 62 6c 65 20 74 6f 20 |s a vari|able to |
|00003a70| 30 2e 20 20 49 66 20 74 | 68 65 72 65 20 69 73 20 |0. If t|here is |
|00003a80| 6e 6f 20 6f 70 31 2c 20 | 74 68 65 6e 20 74 68 65 |no op1, |then the|
|00003a90| 20 64 65 73 74 69 6e 61 | 74 69 6f 6e 0d 2a 20 76 | destina|tion.* v|
|00003aa0| 61 72 69 61 62 6c 65 20 | 6e 75 6d 62 65 72 20 69 |ariable |number i|
|00003ab0| 73 20 61 73 73 75 6d 65 | 64 20 74 6f 20 62 65 20 |s assume|d to be |
|00003ac0| 69 6e 20 74 68 65 20 78 | 72 65 67 2e 0d 09 4d 41 |in the x|reg...MA|
|00003ad0| 43 52 4f 0d 26 6c 61 62 | 09 5f 73 65 74 30 09 26 |CRO.&lab|._set0.&|
|00003ae0| 6f 70 0d 26 6c 61 62 09 | 0d 09 69 66 09 26 6f 70 |op.&lab.|..if.&op|
|00003af0| 3d 27 27 20 67 6f 74 6f | 20 2e 6a 73 72 0d 09 6c |='' goto| .jsr..l|
|00003b00| 64 78 09 23 3c 26 6f 70 | 0d 2e 6a 73 72 09 6a 73 |dx.#<&op|..jsr.js|
|00003b10| 72 09 73 65 74 7a 65 72 | 6f 0d 09 4d 45 4e 44 0d |r.setzer|o..MEND.|
|00003b20| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00003b30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003b40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 0d 0d 2a 20 54 68 |********|*...* Th|
|00003b50| 69 73 20 6d 61 63 72 6f | 20 73 65 74 73 20 61 20 |is macro| sets a |
|00003b60| 76 61 72 69 61 62 6c 65 | 20 74 6f 20 61 6e 6f 74 |variable| to anot|
|00003b70| 68 65 72 20 76 61 72 69 | 61 62 6c 65 2e 20 20 49 |her vari|able. I|
|00003b80| 66 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 6f 70 |f there |is no op|
|00003b90| 31 2c 20 74 68 65 6e 20 | 74 68 65 0d 2a 20 64 65 |1, then |the.* de|
|00003ba0| 73 74 69 6e 61 74 69 6f | 6e 20 76 61 72 69 61 62 |stinatio|n variab|
|00003bb0| 6c 65 20 6e 75 6d 62 65 | 72 20 69 73 20 61 73 73 |le numbe|r is ass|
|00003bc0| 75 6d 65 64 20 74 6f 20 | 62 65 20 69 6e 20 74 68 |umed to |be in th|
|00003bd0| 65 20 78 72 65 67 2e 20 | 20 49 66 20 74 68 65 72 |e xreg. | If ther|
|00003be0| 65 20 69 73 20 6e 6f 0d | 2a 20 6f 70 32 2c 20 74 |e is no.|* op2, t|
|00003bf0| 68 65 6e 20 74 68 65 20 | 73 6f 75 72 63 65 20 76 |hen the |source v|
|00003c00| 61 72 69 61 62 6c 65 20 | 6e 75 6d 62 65 72 20 69 |ariable |number i|
|00003c10| 73 20 61 73 73 75 6d 65 | 64 20 74 6f 20 62 65 20 |s assume|d to be |
|00003c20| 69 6e 20 74 68 65 20 79 | 72 65 67 2e 0d 09 4d 41 |in the y|reg...MA|
|00003c30| 43 52 4f 0d 26 6c 61 62 | 09 5f 76 61 72 63 70 79 |CRO.&lab|._varcpy|
|00003c40| 09 26 6f 70 31 2c 26 6f | 70 32 0d 26 6c 61 62 09 |.&op1,&o|p2.&lab.|
|00003c50| 0d 09 69 66 09 26 6f 70 | 31 3d 27 27 20 67 6f 74 |..if.&op|1='' got|
|00003c60| 6f 20 2e 61 0d 09 6c 64 | 78 09 23 3c 26 6f 70 31 |o .a..ld|x.#<&op1|
|00003c70| 0d 2e 61 09 69 66 09 26 | 6f 70 32 3d 27 27 20 67 |..a.if.&|op2='' g|
|00003c80| 6f 74 6f 20 2e 6a 73 72 | 0d 09 6c 64 79 09 23 3c |oto .jsr|..ldy.#<|
|00003c90| 26 6f 70 32 0d 2e 6a 73 | 72 09 6a 73 72 09 73 65 |&op2..js|r.jsr.se|
|00003ca0| 74 65 71 0d 09 6d 65 6e | 64 0d 0d 0d 2a 2a 2a 2a |teq..men|d...****|
|00003cb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003cc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003cd0| 2a 2a 2a 0d 0d 0d 2a 20 | 54 68 69 73 20 6d 61 63 |***...* |This mac|
|00003ce0| 72 6f 20 73 65 74 73 20 | 61 20 76 61 72 69 61 62 |ro sets |a variab|
|00003cf0| 6c 65 20 74 6f 20 61 20 | 31 2d 62 79 74 65 20 76 |le to a |1-byte v|
|00003d00| 61 6c 75 65 2e 20 20 49 | 66 20 74 68 65 72 65 20 |alue. I|f there |
|00003d10| 69 73 20 6e 6f 20 6f 70 | 31 2c 20 74 68 65 6e 20 |is no op|1, then |
|00003d20| 74 68 65 0d 2a 20 64 65 | 73 74 69 6e 61 74 69 6f |the.* de|stinatio|
|00003d30| 6e 20 76 61 72 69 61 62 | 6c 65 20 6e 75 6d 62 65 |n variab|le numbe|
|00003d40| 72 20 69 73 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |r is ass|umed to |
|00003d50| 62 65 20 69 6e 20 74 68 | 65 20 78 72 65 67 2e 20 |be in th|e xreg. |
|00003d60| 20 49 66 20 74 68 65 72 | 65 20 69 73 20 6e 6f 0d | If ther|e is no.|
|00003d70| 2a 20 6f 70 32 2c 20 74 | 68 65 6e 20 74 68 65 20 |* op2, t|hen the |
|00003d80| 76 61 6c 75 65 20 69 73 | 20 61 73 73 75 6d 65 64 |value is| assumed|
|00003d90| 20 74 6f 20 62 65 20 69 | 6e 20 74 68 65 20 61 63 | to be i|n the ac|
|00003da0| 63 2e 0d 09 4d 41 43 52 | 4f 0d 26 6c 61 62 09 5f |c...MACR|O.&lab._|
|00003db0| 73 65 74 6c 09 26 6f 70 | 31 2c 26 6f 70 32 0d 26 |setl.&op|1,&op2.&|
|00003dc0| 6c 61 62 09 0d 09 69 66 | 09 26 6f 70 31 3d 27 27 |lab...if|.&op1=''|
|00003dd0| 20 67 6f 74 6f 20 2e 61 | 0d 09 6c 64 78 09 23 3c | goto .a|..ldx.#<|
|00003de0| 26 6f 70 31 0d 2e 61 09 | 69 66 09 26 6f 70 32 3d |&op1..a.|if.&op2=|
|00003df0| 27 27 20 67 6f 74 6f 20 | 2e 6a 73 72 0d 09 61 63 |'' goto |.jsr..ac|
|00003e00| 6f 72 6d 09 26 6f 70 32 | 0d 2e 6a 73 72 09 6a 73 |orm.&op2|..jsr.js|
|00003e10| 72 09 73 65 74 63 6f 6e | 6c 0d 09 6d 65 6e 64 0d |r.setcon|l..mend.|
|00003e20| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |..******|********|
|00003e30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003e40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 0d 0d 2a 20 54 68 |********|*...* Th|
|00003e50| 69 73 20 6d 61 63 72 6f | 20 73 65 74 73 20 61 20 |is macro| sets a |
|00003e60| 76 61 72 69 61 62 6c 65 | 20 74 6f 20 61 20 32 2d |variable| to a 2-|
|00003e70| 62 79 74 65 20 76 61 6c | 75 65 2e 20 20 49 66 20 |byte val|ue. If |
|00003e80| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 6f 70 31 2c |there is| no op1,|
|00003e90| 20 74 68 65 6e 20 74 68 | 65 0d 2a 20 64 65 73 74 | then th|e.* dest|
|00003ea0| 69 6e 61 74 69 6f 6e 20 | 76 61 72 69 61 62 6c 65 |ination |variable|
|00003eb0| 20 6e 75 6d 62 65 72 20 | 69 73 20 61 73 73 75 6d | number |is assum|
|00003ec0| 65 64 20 74 6f 20 62 65 | 20 69 6e 20 74 68 65 20 |ed to be| in the |
|00003ed0| 78 72 65 67 2e 20 20 49 | 66 20 74 68 65 72 65 20 |xreg. I|f there |
|00003ee0| 69 73 20 6e 6f 0d 2a 20 | 6f 70 32 2c 20 74 68 65 |is no.* |op2, the|
|00003ef0| 6e 20 74 68 65 20 76 61 | 6c 75 65 20 69 73 20 61 |n the va|lue is a|
|00003f00| 73 73 75 6d 65 64 20 74 | 6f 20 62 65 20 69 6e 20 |ssumed t|o be in |
|00003f10| 61 63 63 2c 79 2e 0d 09 | 4d 41 43 52 4f 0d 26 6c |acc,y...|MACRO.&l|
|00003f20| 61 62 09 5f 73 65 74 09 | 26 6f 70 31 2c 26 6f 70 |ab._set.|&op1,&op|
|00003f30| 32 0d 26 6c 61 62 09 0d | 09 69 66 09 26 6f 70 31 |2.&lab..|.if.&op1|
|00003f40| 3d 27 27 20 67 6f 74 6f | 20 2e 61 0d 09 6c 64 78 |='' goto| .a..ldx|
|00003f50| 09 23 3c 26 6f 70 31 0d | 2e 61 09 69 66 09 26 6f |.#<&op1.|.a.if.&o|
|00003f60| 70 32 3d 27 27 20 67 6f | 74 6f 20 2e 6a 73 72 0d |p2='' go|to .jsr.|
|00003f70| 09 61 79 63 6f 72 6d 09 | 26 6f 70 32 0d 2e 6a 73 |.aycorm.|&op2..js|
|00003f80| 72 09 6a 73 72 09 73 65 | 74 63 6f 6e 0d 09 6d 65 |r.jsr.se|tcon..me|
|00003f90| 6e 64 0d 0d 0d 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |nd...***|********|
|00003fa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003fb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 0d 0d 2a |********|****...*|
|00003fc0| 20 54 68 69 73 20 6d 61 | 63 72 6f 20 69 73 20 75 | This ma|cro is u|
|00003fd0| 73 65 64 20 74 6f 20 73 | 65 74 20 61 20 62 75 6e |sed to s|et a bun|
|00003fe0| 63 68 20 6f 66 20 76 61 | 72 69 61 62 6c 65 73 20 |ch of va|riables |
|00003ff0| 74 6f 20 63 6f 6e 73 74 | 61 6e 74 20 76 61 6c 75 |to const|ant valu|
|00004000| 65 73 2e 0d 2a 20 54 68 | 65 72 65 20 6d 75 73 74 |es..* Th|ere must|
|00004010| 20 62 65 20 61 20 6e 6f | 6e 2d 7a 65 72 6f 20 65 | be a no|n-zero e|
|00004020| 76 65 6e 20 6e 75 6d 62 | 65 72 20 6f 66 20 70 61 |ven numb|er of pa|
|00004030| 72 61 6d 65 74 65 72 73 | 2e 20 20 54 68 65 20 6f |rameters|. The o|
|00004040| 64 64 20 70 61 72 61 6d | 65 74 65 72 73 0d 2a 20 |dd param|eters.* |
|00004050| 61 72 65 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 |are the |variable|
|00004060| 73 2c 20 61 6e 64 20 74 | 68 65 20 65 76 65 6e 20 |s, and t|he even |
|00004070| 70 61 72 61 6d 65 74 65 | 72 73 20 61 72 65 20 74 |paramete|rs are t|
|00004080| 68 65 20 63 6f 6e 73 74 | 61 6e 74 20 76 61 6c 75 |he const|ant valu|
|00004090| 65 73 20 66 6f 72 0d 2a | 20 74 68 65 20 70 72 65 |es for.*| the pre|
|000040a0| 63 65 65 64 69 6e 67 20 | 70 61 72 61 6d 65 74 65 |ceeding |paramete|
|000040b0| 72 2e 20 20 54 68 65 20 | 73 65 74 76 61 72 73 20 |r. The |setvars |
|000040c0| 72 6f 75 74 69 6e 65 20 | 75 73 65 73 20 74 68 65 |routine |uses the|
|000040d0| 20 72 65 74 75 72 6e 20 | 61 64 64 72 65 73 73 0d | return |address.|
|000040e0| 2a 20 61 73 20 61 20 70 | 6f 69 6e 74 65 72 20 74 |* as a p|ointer t|
|000040f0| 6f 20 74 68 65 20 64 61 | 74 61 20 28 6a 75 73 74 |o the da|ta (just|
|00004100| 20 6c 69 6b 65 20 74 68 | 65 20 77 72 69 74 65 20 | like th|e write |
|00004110| 72 6f 75 74 69 6e 65 29 | 2e 20 20 49 74 20 73 69 |routine)|. It si|
|00004120| 6d 70 6c 79 0d 2a 20 73 | 65 74 73 20 74 68 65 20 |mply.* s|ets the |
|00004130| 64 65 73 69 67 6e 61 74 | 65 64 20 76 61 72 69 61 |designat|ed varia|
|00004140| 62 6c 65 20 74 6f 20 74 | 68 65 20 64 65 73 69 67 |ble to t|he desig|
|00004150| 6e 61 74 65 64 20 63 6f | 6e 73 74 61 6e 74 20 75 |nated co|nstant u|
|00004160| 6e 74 69 6c 20 69 74 0d | 2a 20 65 6e 63 6f 75 6e |ntil it.|* encoun|
|00004170| 74 65 72 73 20 61 20 32 | 35 35 20 61 73 20 61 20 |ters a 2|55 as a |
|00004180| 76 61 72 69 61 62 6c 65 | 20 76 61 6c 75 65 2e 20 |variable| value. |
|00004190| 20 41 20 32 35 35 20 69 | 73 20 72 65 73 65 72 76 | A 255 i|s reserv|
|000041a0| 65 64 20 66 6f 72 20 74 | 68 69 73 0d 2a 20 70 75 |ed for t|his.* pu|
|000041b0| 72 70 6f 73 65 2e 20 20 | 54 68 69 73 20 6d 61 63 |rpose. |This mac|
|000041c0| 72 6f 20 70 6c 61 63 65 | 73 20 61 20 32 35 35 20 |ro place|s a 255 |
|000041d0| 61 74 20 74 68 65 20 65 | 6e 64 20 6f 66 20 74 68 |at the e|nd of th|
|000041e0| 65 20 64 61 74 61 20 6c | 69 73 74 0d 2a 20 61 75 |e data l|ist.* au|
|000041f0| 74 6f 6d 61 74 69 63 61 | 6c 6c 79 2e 0d 09 4d 41 |tomatica|lly...MA|
|00004200| 43 52 4f 0d 26 6c 61 62 | 09 5f 73 65 74 76 61 72 |CRO.&lab|._setvar|
|00004210| 73 0d 26 6c 61 62 09 0d | 09 69 66 09 26 73 79 73 |s.&lab..|.if.&sys|
|00004220| 6c 69 73 74 5b 32 5d 3d | 27 27 20 74 68 65 6e 0d |list[2]=|'' then.|
|00004230| 09 61 65 72 72 6f 72 09 | 27 5f 73 65 74 76 61 72 |.aerror.|'_setvar|
|00004240| 73 3a 20 20 6d 75 73 74 | 20 68 61 76 65 20 61 74 |s: must| have at|
|00004250| 20 6c 65 61 73 74 20 74 | 77 6f 20 70 61 72 61 6d | least t|wo param|
|00004260| 65 74 65 72 73 27 0d 09 | 6d 65 78 69 74 0d 09 65 |eters'..|mexit..e|
|00004270| 6e 64 69 66 0d 09 6a 73 | 72 09 73 65 74 76 61 72 |ndif..js|r.setvar|
|00004280| 73 0d 09 6c 63 6c 61 09 | 26 69 2c 26 6a 2c 26 6e |s..lcla.|&i,&j,&n|
|00004290| 0d 26 69 09 73 65 74 61 | 09 31 0d 26 6a 09 73 65 |.&i.seta|.1.&j.se|
|000042a0| 74 61 09 32 0d 26 6e 09 | 73 65 74 61 09 26 6e 62 |ta.2.&n.|seta.&nb|
|000042b0| 72 28 26 73 79 73 6c 69 | 73 74 29 0d 2e 61 09 69 |r(&sysli|st)..a.i|
|000042c0| 66 09 26 73 79 73 6c 69 | 73 74 5b 26 6a 5d 3d 27 |f.&sysli|st[&j]='|
|000042d0| 27 20 74 68 65 6e 0d 09 | 61 65 72 72 6f 72 09 27 |' then..|aerror.'|
|000042e0| 5f 73 65 74 76 61 72 73 | 3a 20 20 6d 75 73 74 20 |_setvars|: must |
|000042f0| 68 61 76 65 20 65 76 65 | 6e 20 6e 75 6d 62 65 72 |have eve|n number|
|00004300| 20 6f 66 20 70 61 72 61 | 6d 65 74 65 72 73 27 0d | of para|meters'.|
|00004310| 09 6d 65 78 69 74 0d 09 | 65 6e 64 69 66 0d 09 64 |.mexit..|endif..d|
|00004320| 63 2e 62 09 26 73 79 73 | 6c 69 73 74 5b 26 69 5d |c.b.&sys|list[&i]|
|00004330| 0d 09 69 66 09 26 73 75 | 62 73 74 72 28 26 73 79 |..if.&su|bstr(&sy|
|00004340| 73 6c 69 73 74 5b 26 6a | 5d 2c 31 2c 31 29 3c 3e |slist[&j|],1,1)<>|
|00004350| 27 23 27 20 74 68 65 6e | 0d 09 61 65 72 72 6f 72 |'#' then|..aerror|
|00004360| 09 27 5f 73 65 74 76 61 | 72 73 3a 20 20 76 61 72 |.'_setva|rs: var|
|00004370| 69 61 62 6c 65 73 20 63 | 61 6e 20 6f 6e 6c 79 20 |iables c|an only |
|00004380| 62 65 20 73 65 74 20 74 | 6f 20 63 6f 6e 73 74 61 |be set t|o consta|
|00004390| 6e 74 73 20 2d 2d 20 6d | 69 73 73 69 6e 67 20 23 |nts -- m|issing #|
|000043a0| 27 0d 09 6d 65 78 69 74 | 0d 09 65 6e 64 69 66 0d |'..mexit|..endif.|
|000043b0| 09 64 63 2e 77 09 26 73 | 75 62 73 74 72 28 26 73 |.dc.w.&s|ubstr(&s|
|000043c0| 79 73 6c 69 73 74 5b 26 | 6a 5d 2c 32 2c 39 39 39 |yslist[&|j],2,999|
|000043d0| 29 0d 26 69 09 73 65 74 | 61 09 26 69 2b 32 0d 26 |).&i.set|a.&i+2.&|
|000043e0| 6a 09 73 65 74 61 09 26 | 6a 2b 32 0d 09 69 66 09 |j.seta.&|j+2..if.|
|000043f0| 26 69 3c 3d 26 6e 20 67 | 6f 74 6f 20 2e 61 0d 09 |&i<=&n g|oto .a..|
|00004400| 64 63 2e 62 09 32 35 35 | 0d 09 4d 45 4e 44 0d 0d |dc.b.255|..MEND..|
|00004410| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|00004420| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004430| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 0d 2a 20 54 68 69 |********|...* Thi|
|00004440| 73 20 6d 61 63 72 6f 20 | 73 77 61 70 73 20 74 68 |s macro |swaps th|
|00004450| 65 20 74 77 6f 20 76 61 | 72 69 61 62 6c 65 73 20 |e two va|riables |
|00004460| 69 66 20 74 68 65 20 78 | 72 65 67 20 76 61 72 69 |if the x|reg vari|
|00004470| 61 62 6c 65 20 69 73 20 | 62 69 67 67 65 72 20 74 |able is |bigger t|
|00004480| 68 61 6e 20 74 68 65 0d | 2a 20 79 72 65 67 20 76 |han the.|* yreg v|
|00004490| 61 72 69 61 62 6c 65 2e | 20 20 49 66 20 74 68 65 |ariable.| If the|
|000044a0| 72 65 20 69 73 20 6e 6f | 20 6f 70 31 2c 20 74 68 |re is no| op1, th|
|000044b0| 65 6e 20 74 68 65 20 64 | 65 73 74 69 6e 61 74 69 |en the d|estinati|
|000044c0| 6f 6e 20 76 61 72 69 61 | 62 6c 65 20 6e 75 6d 62 |on varia|ble numb|
|000044d0| 65 72 20 69 73 0d 2a 20 | 61 73 73 75 6d 65 64 20 |er is.* |assumed |
|000044e0| 74 6f 20 62 65 20 69 6e | 20 74 68 65 20 78 72 65 |to be in| the xre|
|000044f0| 67 2e 20 20 49 66 20 74 | 68 65 72 65 20 69 73 20 |g. If t|here is |
|00004500| 6e 6f 20 6f 70 32 2c 20 | 74 68 65 6e 20 74 68 65 |no op2, |then the|
|00004510| 20 73 6f 75 72 63 65 20 | 76 61 72 69 61 62 6c 65 | source |variable|
|00004520| 0d 2a 20 6e 75 6d 62 65 | 72 20 69 73 20 61 73 73 |.* numbe|r is ass|
|00004530| 75 6d 65 64 20 74 6f 20 | 62 65 20 69 6e 20 74 68 |umed to |be in th|
|00004540| 65 20 79 72 65 67 2e 0d | 09 4d 41 43 52 4f 0d 26 |e yreg..|.MACRO.&|
|00004550| 6c 61 62 09 5f 6d 69 6e | 73 77 61 70 09 26 6f 70 |lab._min|swap.&op|
|00004560| 31 2c 26 6f 70 32 09 0d | 26 6c 61 62 09 0d 09 69 |1,&op2..|&lab...i|
|00004570| 66 09 26 6f 70 31 3d 27 | 27 20 67 6f 74 6f 20 2e |f.&op1='|' goto .|
|00004580| 61 0d 09 6c 64 78 09 23 | 3c 26 6f 70 31 0d 2e 61 |a..ldx.#|<&op1..a|
|00004590| 09 69 66 09 26 6f 70 32 | 3d 27 27 20 67 6f 74 6f |.if.&op2|='' goto|
|000045a0| 20 2e 6a 73 72 0d 09 6c | 64 79 09 23 3c 26 6f 70 | .jsr..l|dy.#<&op|
|000045b0| 32 0d 2e 6a 73 72 09 6a | 73 72 09 78 6c 74 79 0d |2..jsr.j|sr.xlty.|
|000045c0| 09 6d 65 6e 64 0d 0d 0d | 2a 2a 2a 2a 2a 2a 2a 2a |.mend...|********|
|000045d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000045e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 0d |********|*******.|
|000045f0| 0d 0d 2a 20 54 68 69 73 | 20 6d 61 63 72 6f 20 73 |..* This| macro s|
|00004600| 77 61 70 73 20 74 68 65 | 20 74 77 6f 20 76 61 72 |waps the| two var|
|00004610| 69 61 62 6c 65 73 20 69 | 66 20 74 68 65 20 78 72 |iables i|f the xr|
|00004620| 65 67 20 76 61 72 69 61 | 62 6c 65 20 69 73 20 73 |eg varia|ble is s|
|00004630| 6d 61 6c 6c 65 72 20 74 | 68 61 6e 20 74 68 65 0d |maller t|han the.|
|00004640| 2a 20 79 72 65 67 20 76 | 61 72 69 61 62 6c 65 2e |* yreg v|ariable.|
|00004650| 20 20 49 66 20 74 68 65 | 72 65 20 69 73 20 6e 6f | If the|re is no|
|00004660| 20 6f 70 31 2c 20 74 68 | 65 6e 20 74 68 65 20 64 | op1, th|en the d|
|00004670| 65 73 74 69 6e 61 74 69 | 6f 6e 20 76 61 72 69 61 |estinati|on varia|
|00004680| 62 6c 65 20 6e 75 6d 62 | 65 72 20 69 73 0d 2a 20 |ble numb|er is.* |
|00004690| 61 73 73 75 6d 65 64 20 | 74 6f 20 62 65 20 69 6e |assumed |to be in|
|000046a0| 20 74 68 65 20 78 72 65 | 67 2e 20 20 49 66 20 74 | the xre|g. If t|
|000046b0| 68 65 72 65 20 69 73 20 | 6e 6f 20 6f 70 32 2c 20 |here is |no op2, |
|000046c0| 74 68 65 6e 20 74 68 65 | 20 73 6f 75 72 63 65 20 |then the| source |
|000046d0| 76 61 72 69 61 62 6c 65 | 0d 2a 20 6e 75 6d 62 65 |variable|.* numbe|
|000046e0| 72 20 69 73 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |r is ass|umed to |
|000046f0| 62 65 20 69 6e 20 74 68 | 65 20 79 72 65 67 2e 0d |be in th|e yreg..|
|00004700| 09 4d 41 43 52 4f 0d 26 | 6c 61 62 09 5f 6d 61 78 |.MACRO.&|lab._max|
|00004710| 73 77 61 70 09 26 6f 70 | 31 2c 26 6f 70 32 09 0d |swap.&op|1,&op2..|
|00004720| 26 6c 61 62 09 0d 09 69 | 66 09 26 6f 70 31 3d 27 |&lab...i|f.&op1='|
|00004730| 27 20 67 6f 74 6f 20 2e | 61 0d 09 6c 64 78 09 23 |' goto .|a..ldx.#|
|00004740| 3c 26 6f 70 31 0d 2e 61 | 09 69 66 09 26 6f 70 32 |<&op1..a|.if.&op2|
|00004750| 3d 27 27 20 67 6f 74 6f | 20 2e 6a 73 72 0d 09 6c |='' goto| .jsr..l|
|00004760| 64 79 09 23 3c 26 6f 70 | 32 0d 2e 6a 73 72 09 6a |dy.#<&op|2..jsr.j|
|00004770| 73 72 09 78 67 74 79 0d | 09 6d 65 6e 64 0d 0d 0d |sr.xgty.|.mend...|
|00004780| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004790| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000047a0| 2a 2a 2a 2a 2a 2a 2a 0d | 0d 0d 2a 20 54 68 69 73 |*******.|..* This|
|000047b0| 20 6d 61 63 72 6f 20 64 | 6f 65 73 20 61 20 73 69 | macro d|oes a si|
|000047c0| 67 6e 65 64 20 63 6f 6d | 70 61 72 65 20 6f 66 20 |gned com|pare of |
|000047d0| 74 77 6f 20 76 61 72 69 | 61 62 6c 65 73 2e 20 20 |two vari|ables. |
|000047e0| 54 68 65 20 65 71 75 61 | 6c 20 73 74 61 74 75 73 |The equa|l status|
|000047f0| 20 69 73 20 74 72 75 65 | 0d 2a 20 69 66 20 74 68 | is true|.* if th|
|00004800| 65 20 76 61 72 69 61 62 | 6c 65 73 20 61 72 65 20 |e variab|les are |
|00004810| 65 71 75 61 6c 2e 20 20 | 49 66 20 74 68 65 20 78 |equal. |If the x|
|00004820| 72 65 67 20 76 61 72 69 | 61 62 6c 65 20 69 73 20 |reg vari|able is |
|00004830| 67 72 65 61 74 65 72 20 | 6f 72 20 65 71 75 61 6c |greater |or equal|
|00004840| 2c 20 74 68 65 6e 0d 2a | 20 74 68 65 20 63 61 72 |, then.*| the car|
|00004850| 72 79 20 69 73 20 73 65 | 74 2e 20 20 49 66 20 74 |ry is se|t. If t|
|00004860| 68 65 20 78 72 65 67 20 | 76 61 72 69 61 62 6c 65 |he xreg |variable|
|00004870| 20 69 73 20 73 6d 61 6c | 6c 65 72 2c 20 74 68 65 | is smal|ler, the|
|00004880| 6e 20 74 68 65 20 63 61 | 72 72 79 20 69 73 20 63 |n the ca|rry is c|
|00004890| 6c 65 61 72 2e 0d 2a 20 | 49 66 20 74 68 65 72 65 |lear..* |If there|
|000048a0| 20 69 73 20 6e 6f 20 6f | 70 31 2c 20 74 68 65 6e | is no o|p1, then|
|000048b0| 20 74 68 65 20 76 61 72 | 69 61 62 6c 65 20 6e 75 | the var|iable nu|
|000048c0| 6d 62 65 72 20 69 73 20 | 61 73 73 75 6d 65 64 20 |mber is |assumed |
|000048d0| 74 6f 20 62 65 20 69 6e | 20 74 68 65 20 78 72 65 |to be in| the xre|
|000048e0| 67 2e 0d 2a 20 49 66 20 | 74 68 65 72 65 20 69 73 |g..* If |there is|
|000048f0| 20 6e 6f 20 6f 70 32 2c | 20 74 68 65 6e 20 74 68 | no op2,| then th|
|00004900| 65 20 76 61 72 69 61 62 | 6c 65 20 6e 75 6d 62 65 |e variab|le numbe|
|00004910| 72 20 69 73 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |r is ass|umed to |
|00004920| 62 65 20 69 6e 20 74 68 | 65 20 79 72 65 67 2e 0d |be in th|e yreg..|
|00004930| 09 4d 41 43 52 4f 0d 26 | 6c 61 62 09 5f 76 73 67 |.MACRO.&|lab._vsg|
|00004940| 6e 63 6d 70 09 26 6f 70 | 31 2c 26 6f 70 32 09 0d |ncmp.&op|1,&op2..|
|00004950| 26 6c 61 62 0d 09 69 66 | 09 26 6f 70 31 3d 27 27 |&lab..if|.&op1=''|
|00004960| 20 67 6f 74 6f 20 2e 61 | 0d 09 6c 64 78 09 23 3c | goto .a|..ldx.#<|
|00004970| 26 6f 70 31 0d 2e 61 09 | 69 66 09 26 6f 70 32 3d |&op1..a.|if.&op2=|
|00004980| 27 27 20 67 6f 74 6f 20 | 2e 6a 73 72 0d 09 6c 64 |'' goto |.jsr..ld|
|00004990| 79 09 23 3c 26 6f 70 32 | 0d 2e 6a 73 72 09 6a 73 |y.#<&op2|..jsr.js|
|000049a0| 72 09 76 69 66 73 67 6e | 65 71 0d 09 6d 65 6e 64 |r.vifsgn|eq..mend|
|000049b0| 0d 0d 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...*****|********|
|000049c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000049d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 0d 2a 20 54 |********|**...* T|
|000049e0| 68 69 73 20 6d 61 63 72 | 6f 20 64 6f 65 73 20 61 |his macr|o does a|
|000049f0| 6e 20 75 6e 73 69 67 6e | 65 64 20 63 6f 6d 70 61 |n unsign|ed compa|
|00004a00| 72 65 20 6f 66 20 74 77 | 6f 20 76 61 72 69 61 62 |re of tw|o variab|
|00004a10| 6c 65 73 2e 20 20 54 68 | 65 20 65 71 75 61 6c 20 |les. Th|e equal |
|00004a20| 73 74 61 74 75 73 20 69 | 73 0d 2a 20 74 72 75 65 |status i|s.* true|
|00004a30| 20 69 66 20 74 68 65 20 | 76 61 72 69 61 62 6c 65 | if the |variable|
|00004a40| 73 20 61 72 65 20 65 71 | 75 61 6c 2e 20 20 49 66 |s are eq|ual. If|
|00004a50| 20 74 68 65 20 78 72 65 | 67 20 76 61 72 69 61 62 | the xre|g variab|
|00004a60| 6c 65 20 69 73 20 67 72 | 65 61 74 65 72 20 6f 72 |le is gr|eater or|
|00004a70| 20 65 71 75 61 6c 2c 0d | 2a 20 74 68 65 6e 20 74 | equal,.|* then t|
|00004a80| 68 65 20 63 61 72 72 79 | 20 69 73 20 73 65 74 2e |he carry| is set.|
|00004a90| 20 20 49 66 20 74 68 65 | 20 78 72 65 67 20 76 61 | If the| xreg va|
|00004aa0| 72 69 61 62 6c 65 20 69 | 73 20 73 6d 61 6c 6c 65 |riable i|s smalle|
|00004ab0| 72 2c 20 74 68 65 6e 20 | 74 68 65 20 63 61 72 72 |r, then |the carr|
|00004ac0| 79 20 69 73 0d 2a 20 63 | 6c 65 61 72 2e 20 20 49 |y is.* c|lear. I|
|00004ad0| 66 20 74 68 65 72 65 20 | 69 73 20 6e 6f 20 6f 70 |f there |is no op|
|00004ae0| 31 2c 20 74 68 65 6e 20 | 74 68 65 20 76 61 72 69 |1, then |the vari|
|00004af0| 61 62 6c 65 20 6e 75 6d | 62 65 72 20 69 73 20 61 |able num|ber is a|
|00004b00| 73 73 75 6d 65 64 20 74 | 6f 20 62 65 20 69 6e 20 |ssumed t|o be in |
|00004b10| 74 68 65 0d 2a 20 78 72 | 65 67 2e 20 20 49 66 20 |the.* xr|eg. If |
|00004b20| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 6f 70 32 2c |there is| no op2,|
|00004b30| 20 74 68 65 6e 20 74 68 | 65 20 76 61 72 69 61 62 | then th|e variab|
|00004b40| 6c 65 20 6e 75 6d 62 65 | 72 20 69 73 20 61 73 73 |le numbe|r is ass|
|00004b50| 75 6d 65 64 20 74 6f 20 | 62 65 20 69 6e 20 74 68 |umed to |be in th|
|00004b60| 65 0d 2a 20 79 72 65 67 | 2e 0d 09 4d 41 43 52 4f |e.* yreg|...MACRO|
|00004b70| 0d 26 6c 61 62 09 5f 76 | 63 6d 70 09 26 6f 70 31 |.&lab._v|cmp.&op1|
|00004b80| 2c 26 6f 70 32 09 0d 26 | 6c 61 62 0d 09 69 66 09 |,&op2..&|lab..if.|
|00004b90| 26 6f 70 31 3d 27 27 20 | 67 6f 74 6f 20 2e 61 0d |&op1='' |goto .a.|
|00004ba0| 09 6c 64 78 09 23 3c 26 | 6f 70 31 0d 2e 61 09 69 |.ldx.#<&|op1..a.i|
|00004bb0| 66 09 26 6f 70 32 3d 27 | 27 20 67 6f 74 6f 20 2e |f.&op2='|' goto .|
|00004bc0| 6a 73 72 0d 09 6c 64 79 | 09 23 3c 26 6f 70 32 0d |jsr..ldy|.#<&op2.|
|00004bd0| 2e 6a 73 72 09 6a 73 72 | 09 76 69 66 65 71 75 61 |.jsr.jsr|.vifequa|
|00004be0| 6c 0d 09 6d 65 6e 64 0d | 0d 0d 2a 2a 2a 2a 2a 2a |l..mend.|..******|
|00004bf0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c00| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004c10| 2a 0d 0d 0d 2a 20 54 68 | 69 73 20 6d 61 63 72 6f |*...* Th|is macro|
|00004c20| 20 77 6f 72 6b 73 20 74 | 68 65 20 73 61 6d 65 20 | works t|he same |
|00004c30| 61 73 20 5f 76 73 67 6e | 63 6d 70 2c 20 65 78 63 |as _vsgn|cmp, exc|
|00004c40| 65 70 74 20 74 68 61 74 | 20 69 74 20 63 6f 6d 70 |ept that| it comp|
|00004c50| 61 72 65 73 20 61 20 76 | 61 72 69 61 62 6c 65 0d |ares a v|ariable.|
|00004c60| 2a 20 61 67 61 69 6e 73 | 74 20 61 20 63 6f 6e 73 |* agains|t a cons|
|00004c70| 74 61 6e 74 20 6f 72 20 | 76 61 6c 75 65 20 66 72 |tant or |value fr|
|00004c80| 6f 6d 20 6d 65 6d 6f 72 | 79 20 61 74 20 61 20 73 |om memor|y at a s|
|00004c90| 70 65 63 69 66 69 65 64 | 20 6c 6f 63 61 74 69 6f |pecified| locatio|
|00004ca0| 6e 2e 0d 09 4d 41 43 52 | 4f 0d 26 6c 61 62 09 5f |n...MACR|O.&lab._|
|00004cb0| 73 67 6e 63 6d 70 09 26 | 6f 70 31 2c 26 6f 70 32 |sgncmp.&|op1,&op2|
|00004cc0| 09 0d 26 6c 61 62 0d 09 | 69 66 09 26 6f 70 31 3d |..&lab..|if.&op1=|
|00004cd0| 27 27 20 67 6f 74 6f 20 | 2e 61 0d 09 6c 64 78 09 |'' goto |.a..ldx.|
|00004ce0| 23 3c 26 6f 70 31 0d 2e | 61 09 69 66 09 26 6f 70 |#<&op1..|a.if.&op|
|00004cf0| 32 3d 27 27 20 67 6f 74 | 6f 20 2e 6a 73 72 0d 09 |2='' got|o .jsr..|
|00004d00| 61 79 63 6f 72 6d 09 26 | 6f 70 32 0d 2e 6a 73 72 |aycorm.&|op2..jsr|
|00004d10| 09 6a 73 72 09 69 66 73 | 67 6e 65 71 0d 09 6d 65 |.jsr.ifs|gneq..me|
|00004d20| 6e 64 0d 0d 0d 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |nd...***|********|
|00004d30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004d40| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 0d 0d 2a |********|****...*|
|00004d50| 20 54 68 69 73 20 6d 61 | 63 72 6f 20 77 6f 72 6b | This ma|cro work|
|00004d60| 73 20 74 68 65 20 73 61 | 6d 65 20 61 73 20 5f 76 |s the sa|me as _v|
|00004d70| 63 6d 70 2c 20 65 78 63 | 65 70 74 20 74 68 61 74 |cmp, exc|ept that|
|00004d80| 20 69 74 20 63 6f 6d 70 | 61 72 65 73 20 61 20 76 | it comp|ares a v|
|00004d90| 61 72 69 61 62 6c 65 0d | 2a 20 61 67 61 69 6e 73 |ariable.|* agains|
|00004da0| 74 20 61 20 63 6f 6e 73 | 74 61 6e 74 20 6f 72 20 |t a cons|tant or |
|00004db0| 76 61 6c 75 65 20 66 72 | 6f 6d 20 6d 65 6d 6f 72 |value fr|om memor|
|00004dc0| 79 20 61 74 20 61 20 73 | 70 65 63 69 66 69 65 64 |y at a s|pecified|
|00004dd0| 20 6c 6f 63 61 74 69 6f | 6e 2e 0d 09 4d 41 43 52 | locatio|n...MACR|
|00004de0| 4f 0d 26 6c 61 62 09 5f | 63 6d 70 09 26 6f 70 31 |O.&lab._|cmp.&op1|
|00004df0| 2c 26 6f 70 32 09 0d 26 | 6c 61 62 0d 09 69 66 09 |,&op2..&|lab..if.|
|00004e00| 26 6f 70 31 3d 27 27 20 | 67 6f 74 6f 20 2e 61 0d |&op1='' |goto .a.|
|00004e10| 09 6c 64 78 09 23 3c 26 | 6f 70 31 0d 2e 61 09 69 |.ldx.#<&|op1..a.i|
|00004e20| 66 09 26 6f 70 32 3d 27 | 27 20 67 6f 74 6f 20 2e |f.&op2='|' goto .|
|00004e30| 6a 73 72 0d 09 61 79 63 | 6f 72 6d 09 26 6f 70 32 |jsr..ayc|orm.&op2|
|00004e40| 0d 2e 6a 73 72 09 6a 73 | 72 09 69 66 65 71 75 61 |..jsr.js|r.ifequa|
|00004e50| 6c 0d 09 6d 65 6e 64 0d | 0d 0d 2a 2a 2a 2a 2a 2a |l..mend.|..******|
|00004e60| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004e70| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004e80| 2a 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*.******|********|
|00004e90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004ea0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 2a 2a 2a 2a 2a 2a |********|*.******|
|00004eb0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004ec0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004ed0| 2a 0d 0d 0d 2a 20 54 68 | 69 73 20 6d 61 63 72 6f |*...* Th|is macro|
|00004ee0| 20 69 73 20 75 73 65 64 | 20 74 6f 20 73 65 65 64 | is used| to seed|
|00004ef0| 20 74 68 65 20 72 61 6e | 64 6f 6d 20 6e 75 6d 62 | the ran|dom numb|
|00004f00| 65 72 20 67 65 6e 65 72 | 61 74 6f 72 2e 20 20 49 |er gener|ator. I|
|00004f10| 66 20 74 68 65 72 65 20 | 69 73 0d 2a 20 6e 6f 20 |f there |is.* no |
|00004f20| 6f 70 31 2c 20 74 68 65 | 6e 20 74 68 65 20 72 61 |op1, the|n the ra|
|00004f30| 6e 64 6f 6d 20 73 65 65 | 64 20 69 73 20 61 73 73 |ndom see|d is ass|
|00004f40| 75 6d 65 64 20 74 6f 20 | 62 65 20 69 6e 20 74 68 |umed to |be in th|
|00004f50| 65 20 61 63 63 2c 79 2e | 0d 09 4d 41 43 52 4f 0d |e acc,y.|..MACRO.|
|00004f60| 26 6c 61 62 09 5f 72 6e | 64 73 65 65 64 09 26 6f |&lab._rn|dseed.&o|
|00004f70| 70 0d 26 6c 61 62 09 0d | 09 69 66 09 26 6f 70 3d |p.&lab..|.if.&op=|
|00004f80| 27 27 20 67 6f 74 6f 20 | 2e 6a 73 72 0d 09 61 79 |'' goto |.jsr..ay|
|00004f90| 63 6f 72 6d 09 26 6f 70 | 0d 2e 6a 73 72 09 6a 73 |corm.&op|..jsr.js|
|00004fa0| 72 09 73 65 65 64 72 61 | 6e 64 6f 6d 0d 09 4d 45 |r.seedra|ndom..ME|
|00004fb0| 4e 44 0d 0d 0d 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |ND...***|********|
|00004fc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00004fd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 0d 0d 0d 2a |********|****...*|
|00004fe0| 20 54 68 69 73 20 6d 61 | 63 72 6f 20 69 73 20 75 | This ma|cro is u|
|00004ff0| 73 65 64 20 74 6f 20 72 | 65 74 75 72 6e 20 61 20 |sed to r|eturn a |
|00005000| 72 61 6e 64 6f 6d 20 6e | 75 6d 62 65 72 20 66 72 |random n|umber fr|
|00005010| 6f 6d 20 30 20 74 6f 20 | 6f 70 20 2d 20 31 2e 20 |om 0 to |op - 1. |
|00005020| 20 49 66 20 74 68 65 72 | 65 20 69 73 0d 2a 20 6e | If ther|e is.* n|
|00005030| 6f 20 6f 70 31 2c 20 74 | 68 65 6e 20 74 68 65 20 |o op1, t|hen the |
|00005040| 72 61 6e 64 6f 6d 20 6e | 75 6d 62 65 72 20 6c 69 |random n|umber li|
|00005050| 6d 69 74 20 69 73 20 61 | 73 73 75 6d 65 64 20 74 |mit is a|ssumed t|
|00005060| 6f 20 62 65 20 69 6e 20 | 74 68 65 20 61 63 63 2c |o be in |the acc,|
|00005070| 79 2e 0d 09 4d 41 43 52 | 4f 0d 26 6c 61 62 09 5f |y...MACR|O.&lab._|
|00005080| 72 61 6e 64 6f 6d 09 26 | 6f 70 0d 26 6c 61 62 09 |random.&|op.&lab.|
|00005090| 0d 09 69 66 09 26 6f 70 | 3d 27 27 20 67 6f 74 6f |..if.&op|='' goto|
|000050a0| 20 2e 6a 73 72 0d 09 61 | 79 63 6f 72 6d 09 26 6f | .jsr..a|ycorm.&o|
|000050b0| 70 0d 2e 6a 73 72 09 6a | 73 72 09 63 61 6c 63 72 |p..jsr.j|sr.calcr|
|000050c0| 61 6e 64 6f 6d 0d 09 4d | 45 4e 44 0d 0d 0d 2a 2a |andom..M|END...**|
|000050d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000050e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000050f0| 2a 2a 2a 2a 2a 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |*****.**|********|
|00005100| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005110| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 2a 2a |********|*****.**|
|00005120| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005130| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005140| 2a 2a 2a 2a 2a 0d 0d 0d | 2a 20 54 68 69 73 20 6d |*****...|* This m|
|00005150| 61 63 72 6f 20 74 61 6b | 65 73 20 74 68 65 20 76 |acro tak|es the v|
|00005160| 61 6c 75 65 20 6f 66 20 | 61 20 73 74 72 69 6e 67 |alue of |a string|
|00005170| 20 61 6e 64 20 72 65 74 | 75 72 6e 73 20 69 74 20 | and ret|urns it |
|00005180| 69 6e 20 74 68 65 20 61 | 63 63 2c 79 2e 0d 2a 20 |in the a|cc,y..* |
|00005190| 49 66 20 74 68 65 72 65 | 20 69 73 20 6e 6f 20 6f |If there| is no o|
|000051a0| 70 31 2c 20 74 68 65 6e | 20 74 68 65 20 73 74 72 |p1, then| the str|
|000051b0| 69 6e 67 20 6e 75 6d 62 | 65 72 20 69 73 20 61 73 |ing numb|er is as|
|000051c0| 73 75 6d 65 64 20 74 6f | 20 62 65 20 69 6e 20 74 |sumed to| be in t|
|000051d0| 68 65 20 78 72 65 67 2e | 0d 09 4d 41 43 52 4f 0d |he xreg.|..MACRO.|
|000051e0| 26 6c 61 62 09 5f 73 74 | 72 76 61 6c 09 26 6f 70 |&lab._st|rval.&op|
|000051f0| 0d 26 6c 61 62 0d 09 69 | 66 09 26 6f 70 3d 27 27 |.&lab..i|f.&op=''|
|00005200| 20 67 6f 74 6f 20 2e 6a | 73 72 0d 09 6c 64 78 09 | goto .j|sr..ldx.|
|00005210| 23 3c 26 6f 70 0d 2e 6a | 73 72 09 6a 73 72 09 73 |#<&op..j|sr.jsr.s|
|00005220| 74 72 76 61 6c 0d 09 6d | 65 6e 64 0d 0d 0d 2a 2a |trval..m|end...**|
|00005230| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005240| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005250| 2a 2a 2a 2a 2a 0d 0d 0d | 2a 20 54 68 69 73 20 6d |*****...|* This m|
|00005260| 61 63 72 6f 20 74 61 6b | 65 73 20 74 68 65 20 76 |acro tak|es the v|
|00005270| 61 6c 75 65 20 6f 66 20 | 6f 70 31 20 73 74 72 69 |alue of |op1 stri|
|00005280| 6e 67 20 73 74 61 72 74 | 69 6e 67 20 61 74 20 6f |ng start|ing at o|
|00005290| 70 32 20 63 68 61 72 61 | 63 74 65 72 20 61 6e 64 |p2 chara|cter and|
|000052a0| 0d 2a 20 72 65 74 75 72 | 6e 73 20 69 74 20 69 6e |.* retur|ns it in|
|000052b0| 20 74 68 65 20 61 63 63 | 2c 79 2e 20 20 49 66 20 | the acc|,y. If |
|000052c0| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 6f 70 31 2c |there is| no op1,|
|000052d0| 20 74 68 65 6e 20 74 68 | 65 20 73 74 72 69 6e 67 | then th|e string|
|000052e0| 20 6e 75 6d 62 65 72 20 | 69 73 0d 2a 20 61 73 73 | number |is.* ass|
|000052f0| 75 6d 65 64 20 74 6f 20 | 62 65 20 69 6e 20 74 68 |umed to |be in th|
|00005300| 65 20 78 72 65 67 2e 20 | 20 49 66 20 74 68 65 72 |e xreg. | If ther|
|00005310| 65 20 69 73 20 6e 6f 20 | 6f 70 32 2c 20 74 68 65 |e is no |op2, the|
|00005320| 6e 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |n the ch|aracter |
|00005330| 6e 75 6d 62 65 72 0d 2a | 20 69 73 20 61 73 73 75 |number.*| is assu|
|00005340| 6d 65 64 20 74 6f 20 62 | 65 20 69 6e 20 74 68 65 |med to b|e in the|
|00005350| 20 79 72 65 67 2e 0d 09 | 4d 41 43 52 4f 0d 26 6c | yreg...|MACRO.&l|
|00005360| 61 62 09 5f 6d 69 64 73 | 74 72 76 61 6c 20 26 6f |ab._mids|trval &o|
|00005370| 70 31 2c 26 6f 70 32 0d | 26 6c 61 62 0d 09 69 66 |p1,&op2.|&lab..if|
|00005380| 09 26 6f 70 31 3d 27 27 | 20 67 6f 74 6f 20 2e 61 |.&op1=''| goto .a|
|00005390| 0d 09 6c 64 78 09 23 3c | 26 6f 70 31 0d 2e 61 09 |..ldx.#<|&op1..a.|
|000053a0| 69 66 09 26 6f 70 32 3d | 27 27 20 67 6f 74 6f 20 |if.&op2=|'' goto |
|000053b0| 2e 6a 73 72 0d 09 79 63 | 6f 72 6d 09 26 6f 70 32 |.jsr..yc|orm.&op2|
|000053c0| 0d 2e 6a 73 72 09 6a 73 | 72 09 6d 69 64 73 74 72 |..jsr.js|r.midstr|
|000053d0| 76 61 6c 0d 09 6d 65 6e | 64 0d 0d 0d 2a 2a 2a 2a |val..men|d...****|
|000053e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000053f0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005400| 2a 2a 2a 0d 0d 0d 2a 20 | 54 68 69 73 20 6d 61 63 |***...* |This mac|
|00005410| 72 6f 20 70 72 69 6e 74 | 73 20 74 68 65 20 65 6e |ro print|s the en|
|00005420| 74 69 72 65 20 73 74 72 | 69 6e 67 2e 20 20 49 66 |tire str|ing. If|
|00005430| 20 74 68 65 72 65 20 69 | 73 20 6e 6f 20 6f 70 31 | there i|s no op1|
|00005440| 2c 20 74 68 65 6e 20 74 | 68 65 20 73 74 72 69 6e |, then t|he strin|
|00005450| 67 0d 2a 20 6e 75 6d 62 | 65 72 20 69 73 20 61 73 |g.* numb|er is as|
|00005460| 73 75 6d 65 64 20 74 6f | 20 62 65 20 69 6e 20 74 |sumed to| be in t|
|00005470| 68 65 20 78 72 65 67 2e | 0d 09 4d 41 43 52 4f 0d |he xreg.|..MACRO.|
|00005480| 26 6c 61 62 09 5f 70 72 | 73 74 72 09 26 6f 70 0d |&lab._pr|str.&op.|
|00005490| 26 6c 61 62 09 0d 09 69 | 66 09 26 6f 70 3d 27 27 |&lab...i|f.&op=''|
|000054a0| 20 67 6f 74 6f 20 2e 6a | 73 72 0d 09 6c 64 78 09 | goto .j|sr..ldx.|
|000054b0| 23 3c 26 6f 70 0d 2e 6a | 73 72 09 6a 73 72 09 70 |#<&op..j|sr.jsr.p|
|000054c0| 72 73 74 72 0d 09 4d 45 | 4e 44 0d 0d 0d 2a 2a 2a |rstr..ME|ND...***|
|000054d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000054e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000054f0| 2a 2a 2a 2a 0d 0d 0d 2a | 20 54 68 69 73 20 6d 61 |****...*| This ma|
|00005500| 63 72 6f 20 70 72 69 6e | 74 73 20 6f 70 31 20 73 |cro prin|ts op1 s|
|00005510| 74 72 69 6e 67 20 73 74 | 61 72 74 69 6e 67 20 61 |tring st|arting a|
|00005520| 74 20 74 68 65 20 66 69 | 72 73 74 20 63 68 61 72 |t the fi|rst char|
|00005530| 61 63 74 65 72 20 66 6f | 72 20 6f 70 32 0d 2a 20 |acter fo|r op2.* |
|00005540| 63 68 61 72 61 63 74 65 | 72 73 2e 20 20 49 66 20 |characte|rs. If |
|00005550| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 6f 70 31 2c |there is| no op1,|
|00005560| 20 74 68 65 6e 20 74 68 | 65 20 73 74 72 69 6e 67 | then th|e string|
|00005570| 20 6e 75 6d 62 65 72 20 | 69 73 20 61 73 73 75 6d | number |is assum|
|00005580| 65 64 20 74 6f 20 62 65 | 0d 2a 20 69 6e 20 74 68 |ed to be|.* in th|
|00005590| 65 20 78 72 65 67 2e 20 | 20 49 66 20 74 68 65 72 |e xreg. | If ther|
|000055a0| 65 20 69 73 20 6e 6f 20 | 6f 70 32 2c 20 74 68 65 |e is no |op2, the|
|000055b0| 6e 20 74 68 65 20 6e 75 | 6d 62 65 72 20 6f 66 20 |n the nu|mber of |
|000055c0| 63 68 61 72 61 63 74 65 | 72 73 20 69 73 20 61 73 |characte|rs is as|
|000055d0| 73 75 6d 65 64 0d 2a 20 | 74 6f 20 62 65 20 69 6e |sumed.* |to be in|
|000055e0| 20 74 68 65 20 61 63 63 | 2e 0d 09 4d 41 43 52 4f | the acc|...MACRO|
|000055f0| 0d 26 6c 61 62 09 5f 70 | 72 6c 65 66 74 73 74 72 |.&lab._p|rleftstr|
|00005600| 20 26 6f 70 31 2c 26 6f | 70 32 0d 26 6c 61 62 0d | &op1,&o|p2.&lab.|
|00005610| 09 69 66 09 26 6f 70 31 | 3d 27 27 20 67 6f 74 6f |.if.&op1|='' goto|
|00005620| 20 2e 61 0d 09 6c 64 78 | 09 23 3c 26 6f 70 31 0d | .a..ldx|.#<&op1.|
|00005630| 2e 61 09 69 66 09 26 6f | 70 32 3d 27 27 20 67 6f |.a.if.&o|p2='' go|
|00005640| 74 6f 20 2e 6a 73 72 0d | 09 61 63 6f 72 6d 09 26 |to .jsr.|.acorm.&|
|00005650| 6f 70 32 0d 2e 6a 73 72 | 09 6a 73 72 09 70 72 6c |op2..jsr|.jsr.prl|
|00005660| 65 66 74 73 74 72 0d 09 | 6d 65 6e 64 0d 0d 0d 2a |eftstr..|mend...*|
|00005670| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005680| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005690| 2a 2a 2a 2a 2a 2a 0d 0d | 0d 2a 20 54 68 69 73 20 |******..|.* This |
|000056a0| 6d 61 63 72 6f 20 70 72 | 69 6e 74 73 20 6f 70 31 |macro pr|ints op1|
|000056b0| 20 73 74 72 69 6e 67 20 | 73 74 61 72 74 69 6e 67 | string |starting|
|000056c0| 20 61 74 20 74 68 65 20 | 6f 70 32 20 63 68 61 72 | at the |op2 char|
|000056d0| 61 63 74 65 72 20 66 6f | 72 20 6f 70 33 0d 2a 20 |acter fo|r op3.* |
|000056e0| 63 68 61 72 61 63 74 65 | 72 73 2e 20 20 49 66 20 |characte|rs. If |
|000056f0| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 6f 70 31 2c |there is| no op1,|
|00005700| 20 74 68 65 6e 20 74 68 | 65 20 73 74 72 69 6e 67 | then th|e string|
|00005710| 20 6e 75 6d 62 65 72 20 | 69 73 20 61 73 73 75 6d | number |is assum|
|00005720| 65 64 20 74 6f 20 62 65 | 0d 2a 20 69 6e 20 74 68 |ed to be|.* in th|
|00005730| 65 20 78 72 65 67 2e 20 | 20 49 66 20 74 68 65 72 |e xreg. | If ther|
|00005740| 65 20 69 73 20 6e 6f 20 | 6f 70 32 2c 20 74 68 65 |e is no |op2, the|
|00005750| 6e 20 74 68 65 20 63 68 | 61 72 61 63 74 65 72 20 |n the ch|aracter |
|00005760| 6e 75 6d 62 65 72 20 69 | 73 20 61 73 73 75 6d 65 |number i|s assume|
|00005770| 64 20 74 6f 0d 2a 20 62 | 65 20 69 6e 20 74 68 65 |d to.* b|e in the|
|00005780| 20 79 72 65 67 2e 20 20 | 49 66 20 74 68 65 72 65 | yreg. |If there|
|00005790| 20 69 73 20 6e 6f 20 6f | 70 33 2c 20 74 68 65 6e | is no o|p3, then|
|000057a0| 20 74 68 65 20 6e 75 6d | 62 65 72 20 6f 66 20 63 | the num|ber of c|
|000057b0| 68 61 72 61 63 74 65 72 | 73 20 69 73 0d 2a 20 61 |haracter|s is.* a|
|000057c0| 73 73 75 6d 65 64 20 74 | 6f 20 62 65 20 69 6e 20 |ssumed t|o be in |
|000057d0| 74 68 65 20 61 63 63 2e | 0d 09 4d 41 43 52 4f 0d |the acc.|..MACRO.|
|000057e0| 26 6c 61 62 09 5f 70 72 | 6d 69 64 73 74 72 20 26 |&lab._pr|midstr &|
|000057f0| 6f 70 31 2c 26 6f 70 32 | 2c 26 6f 70 33 0d 26 6c |op1,&op2|,&op3.&l|
|00005800| 61 62 0d 09 69 66 09 26 | 6f 70 31 3d 27 27 20 67 |ab..if.&|op1='' g|
|00005810| 6f 74 6f 20 2e 61 0d 09 | 6c 64 78 09 23 3c 26 6f |oto .a..|ldx.#<&o|
|00005820| 70 31 0d 2e 61 09 69 66 | 09 26 6f 70 32 3d 27 27 |p1..a.if|.&op2=''|
|00005830| 20 67 6f 74 6f 20 2e 62 | 0d 09 79 63 6f 72 6d 09 | goto .b|..ycorm.|
|00005840| 26 6f 70 32 0d 2e 62 09 | 69 66 09 26 6f 70 33 3d |&op2..b.|if.&op3=|
|00005850| 27 27 20 67 6f 74 6f 20 | 2e 6a 73 72 0d 09 61 63 |'' goto |.jsr..ac|
|00005860| 6f 72 6d 09 26 6f 70 33 | 0d 2e 6a 73 72 09 6a 73 |orm.&op3|..jsr.js|
|00005870| 72 09 70 72 6d 69 64 73 | 74 72 0d 09 6d 65 6e 64 |r.prmids|tr..mend|
|00005880| 0d 0d 0d 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...*****|********|
|00005890| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000058a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 0d 0d 0d 2a 20 54 |********|**...* T|
|000058b0| 68 69 73 20 6d 61 63 72 | 6f 20 63 6f 70 69 65 73 |his macr|o copies|
|000058c0| 20 6f 70 33 20 63 68 61 | 72 61 63 74 65 72 73 20 | op3 cha|racters |
|000058d0| 66 72 6f 6d 20 6f 70 32 | 20 73 74 72 69 6e 67 20 |from op2| string |
|000058e0| 74 6f 20 6f 70 31 20 73 | 74 72 69 6e 67 2e 20 20 |to op1 s|tring. |
|000058f0| 49 66 20 74 68 65 72 65 | 0d 2a 20 69 73 20 6e 6f |If there|.* is no|
|00005900| 20 6f 70 31 2c 20 74 68 | 65 6e 20 74 68 65 20 64 | op1, th|en the d|
|00005910| 65 73 74 69 6e 61 74 69 | 6f 6e 20 73 74 72 69 6e |estinati|on strin|
|00005920| 67 20 6e 75 6d 62 65 72 | 20 69 73 20 61 73 73 75 |g number| is assu|
|00005930| 6d 65 64 20 74 6f 20 62 | 65 20 69 6e 20 74 68 65 |med to b|e in the|
|00005940| 20 78 72 65 67 2e 0d 2a | 20 49 66 20 74 68 65 72 | xreg..*| If ther|
|00005950| 65 20 69 73 20 6e 6f 20 | 6f 70 32 2c 20 74 68 65 |e is no |op2, the|
|00005960| 6e 20 74 68 65 20 73 6f | 75 72 63 65 20 73 74 72 |n the so|urce str|
|00005970| 69 6e 67 20 6e 75 6d 62 | 65 72 20 69 73 20 61 73 |ing numb|er is as|
|00005980| 73 75 6d 65 64 20 74 6f | 20 62 65 20 69 6e 20 74 |sumed to| be in t|
|00005990| 68 65 0d 2a 20 79 72 65 | 67 2e 20 20 49 66 20 74 |he.* yre|g. If t|
|000059a0| 68 65 72 65 20 69 73 20 | 6e 6f 20 6f 70 33 2c 20 |here is |no op3, |
|000059b0| 74 68 65 6e 20 74 68 65 | 20 6e 75 6d 62 65 72 20 |then the| number |
|000059c0| 6f 66 20 63 68 61 72 61 | 63 74 65 72 73 20 69 73 |of chara|cters is|
|000059d0| 20 61 73 73 75 6d 65 64 | 20 74 6f 20 62 65 0d 2a | assumed| to be.*|
|000059e0| 20 69 6e 20 74 68 65 20 | 61 63 63 2e 0d 09 4d 41 | in the |acc...MA|
|000059f0| 43 52 4f 0d 26 6c 61 62 | 09 5f 6c 65 66 74 73 74 |CRO.&lab|._leftst|
|00005a00| 72 63 70 79 20 26 6f 70 | 31 2c 26 6f 70 32 2c 26 |rcpy &op|1,&op2,&|
|00005a10| 6f 70 33 0d 26 6c 61 62 | 09 0d 09 69 66 09 26 6f |op3.&lab|...if.&o|
|00005a20| 70 31 3d 27 27 20 67 6f | 74 6f 20 2e 61 0d 09 6c |p1='' go|to .a..l|
|00005a30| 64 78 09 23 3c 26 6f 70 | 31 0d 2e 61 09 69 66 09 |dx.#<&op|1..a.if.|
|00005a40| 26 6f 70 32 3d 27 27 20 | 67 6f 74 6f 20 2e 62 0d |&op2='' |goto .b.|
|00005a50| 09 6c 64 79 09 23 3c 26 | 6f 70 32 0d 2e 62 09 69 |.ldy.#<&|op2..b.i|
|00005a60| 66 09 26 6f 70 33 3d 27 | 27 20 67 6f 74 6f 20 2e |f.&op3='|' goto .|
|00005a70| 6a 73 72 0d 09 61 63 6f | 72 6d 09 26 6f 70 33 0d |jsr..aco|rm.&op3.|
|00005a80| 2e 6a 73 72 09 6a 73 72 | 09 6c 65 66 74 73 74 72 |.jsr.jsr|.leftstr|
|00005a90| 63 70 79 0d 09 6d 65 6e | 64 0d 0d 0d 2a 2a 2a 2a |cpy..men|d...****|
|00005aa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005ab0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005ac0| 2a 2a 2a 0d 0d 0d 2a 20 | 54 68 69 73 20 6d 61 63 |***...* |This mac|
|00005ad0| 72 6f 20 63 6f 70 69 65 | 73 20 6f 70 32 20 73 74 |ro copie|s op2 st|
|00005ae0| 72 69 6e 67 20 74 6f 20 | 6f 70 31 20 73 74 72 69 |ring to |op1 stri|
|00005af0| 6e 67 2e 20 20 49 66 20 | 74 68 65 72 65 20 69 73 |ng. If |there is|
|00005b00| 20 6e 6f 20 6f 70 31 2c | 20 74 68 65 6e 20 74 68 | no op1,| then th|
|00005b10| 65 0d 2a 20 64 65 73 74 | 69 6e 61 74 69 6f 6e 20 |e.* dest|ination |
|00005b20| 73 74 72 69 6e 67 20 6e | 75 6d 62 65 72 20 69 73 |string n|umber is|
|00005b30| 20 61 73 73 75 6d 65 64 | 20 74 6f 20 62 65 20 69 | assumed| to be i|
|00005b40| 6e 20 74 68 65 20 78 72 | 65 67 2e 20 20 49 66 20 |n the xr|eg. If |
|00005b50| 74 68 65 72 65 20 69 73 | 20 6e 6f 20 6f 70 32 2c |there is| no op2,|
|00005b60| 0d 2a 20 74 68 65 6e 20 | 74 68 65 20 73 6f 75 72 |.* then |the sour|
|00005b70| 63 65 20 73 74 72 69 6e | 67 20 6e 75 6d 62 65 72 |ce strin|g number|
|00005b80| 20 69 73 20 61 73 73 75 | 6d 65 64 20 74 6f 20 62 | is assu|med to b|
|00005b90| 65 20 69 6e 20 74 68 65 | 20 79 72 65 67 2e 0d 09 |e in the| yreg...|
|00005ba0| 4d 41 43 52 4f 0d 26 6c | 61 62 09 5f 73 74 72 63 |MACRO.&l|ab._strc|
|00005bb0| 70 79 20 26 6f 70 31 2c | 26 6f 70 32 0d 26 6c 61 |py &op1,|&op2.&la|
|00005bc0| 62 09 0d 09 69 66 09 26 | 6f 70 31 3d 27 27 20 67 |b...if.&|op1='' g|
|00005bd0| 6f 74 6f 20 2e 61 0d 09 | 6c 64 78 09 23 3c 26 6f |oto .a..|ldx.#<&o|
|00005be0| 70 31 0d 2e 61 09 69 66 | 09 26 6f 70 32 3d 27 27 |p1..a.if|.&op2=''|
|00005bf0| 20 67 6f 74 6f 20 2e 6a | 73 72 0d 09 6c 64 79 09 | goto .j|sr..ldy.|
|00005c00| 23 3c 26 6f 70 32 0d 2e | 6a 73 72 09 6a 73 72 09 |#<&op2..|jsr.jsr.|
|00005c10| 73 74 72 63 70 79 0d 09 | 6d 65 6e 64 0d 0d 0d 2a |strcpy..|mend...*|
|00005c20| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005c30| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00005c40| 2a 2a 2a 2a 2a 2a 0d 0d | 0d 2a 20 54 68 69 73 20 |******..|.* This |
|00005c50| 6d 61 63 72 6f 20 63 6f | 70 69 65 73 20 6f 70 34 |macro co|pies op4|
|00005c60| 20 63 68 61 72 61 63 74 | 65 72 73 2c 20 73 74 61 | charact|ers, sta|
|00005c70| 72 74 69 6e 67 20 61 74 | 20 6f 70 33 20 63 68 61 |rting at| op3 cha|
|00005c80| 72 61 63 74 65 72 20 66 | 72 6f 6d 20 6f 70 32 20 |racter f|rom op2 |
|00005c90| 73 74 72 69 6e 67 0d 2a | 20 74 6f 20 6f 70 31 20 |string.*| to op1 |
|00005ca0| 73 74 72 69 6e 67 2e 20 | 20 49 66 20 74 68 65 72 |string. | If ther|
|00005cb0| 65 20 69 73 20 6e 6f 20 | 6f 70 31 2c 20 74 68 65 |e is no |op1, the|
|00005cc0| 6e 20 74 68 65 20 64 65 | 73 74 69 6e 61 74 69 6f |n the de|stinatio|
|00005cd0| 6e 20 73 74 72 69 6e 67 | 20 6e 75 6d 62 65 72 20 |n string| number |
|00005ce0| 69 73 0d 2a 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |is.* ass|umed to |
|00005cf0| 62 65 20 69 6e 20 74 68 | 65 20 78 72 65 67 2e 20 |be in th|e xreg. |
|00005d00| 20 49 66 20 74 68 65 72 | 65 20 69 73 20 6e 6f 20 | If ther|e is no |
|00005d10| 6f 70 32 2c 20 74 68 65 | 6e 20 74 68 65 20 73 6f |op2, the|n the so|
|00005d20| 75 72 63 65 20 73 74 72 | 69 6e 67 20 6e 75 6d 62 |urce str|ing numb|
|00005d30| 65 72 0d 2a 20 69 73 20 | 61 73 73 75 6d 65 64 20 |er.* is |assumed |
|00005d40| 74 6f 20 62 65 20 69 6e | 20 74 68 65 20 79 72 65 |to be in| the yre|
|00005d50| 67 2e 20 20 49 66 20 74 | 68 65 72 65 20 69 73 20 |g. If t|here is |
|00005d60| 6e 6f 20 6f 70 33 2c 20 | 74 68 65 6e 20 74 68 65 |no op3, |then the|
|00005d70| 20 63 68 61 72 61 63 74 | 65 72 20 6e 75 6d 62 65 | charact|er numbe|
|00005d80| 72 0d 2a 20 69 73 20 61 | 73 73 75 6d 65 64 20 74 |r.* is a|ssumed t|
|00005d90| 6f 20 62 65 20 69 6e 20 | 74 68 65 20 61 63 63 2e |o be in |the acc.|
|00005da0| 20 20 49 66 20 74 68 65 | 72 65 20 69 73 20 6e 6f | If the|re is no|
|00005db0| 20 6f 70 34 2c 20 74 68 | 65 6e 20 61 6c 6c 20 63 | op4, th|en all c|
|00005dc0| 68 61 72 61 63 74 65 72 | 73 20 74 6f 20 74 68 65 |haracter|s to the|
|00005dd0| 0d 2a 20 65 6e 64 20 6f | 66 20 74 68 65 20 73 6f |.* end o|f the so|
|00005de0| 75 72 63 65 20 73 74 72 | 69 6e 67 20 77 69 6c 6c |urce str|ing will|
|00005df0| 20 62 65 20 63 6f 70 69 | 65 64 20 74 6f 20 74 68 | be copi|ed to th|
|00005e00| 65 20 64 65 73 74 69 6e | 61 74 69 6f 6e 20 73 74 |e destin|ation st|
|00005e10| 72 69 6e 67 2e 20 20 54 | 68 65 20 6f 70 34 0d 2a |ring. T|he op4.*|
|00005e20| 20 63 61 73 65 20 69 73 | 20 74 68 65 20 6f 6e 6c | case is| the onl|
|00005e30| 79 20 63 61 73 65 20 77 | 68 65 72 65 20 74 68 65 |y case w|here the|
|00005e40| 20 61 73 73 75 6d 65 64 | 20 76 61 6c 75 65 20 69 | assumed| value i|
|00005e50| 73 20 61 20 70 61 72 74 | 69 63 75 6c 61 72 20 76 |s a part|icular v|
|00005e60| 61 6c 75 65 20 28 23 32 | 35 35 29 2c 0d 2a 20 69 |alue (#2|55),.* i|
|00005e70| 6e 73 74 65 61 64 20 6f | 66 20 77 68 61 74 20 69 |nstead o|f what i|
|00005e80| 73 20 69 6e 20 61 20 72 | 65 67 69 73 74 65 72 2e |s in a r|egister.|
|00005e90| 20 20 54 68 69 73 20 69 | 73 20 74 68 65 20 63 61 | This i|s the ca|
|00005ea0| 73 65 20 62 65 63 61 75 | 73 65 20 74 68 65 72 65 |se becau|se there|
|00005eb0| 20 61 72 65 20 6f 6e 6c | 79 0d 2a 20 74 68 72 65 | are onl|y.* thre|
|00005ec0| 65 20 72 65 67 69 73 74 | 65 72 73 2e 0d 09 4d 41 |e regist|ers...MA|
|00005ed0| 43 52 4f 0d 26 6c 61 62 | 09 5f 6d 69 64 73 74 72 |CRO.&lab|._midstr|
|00005ee0| 63 70 79 20 26 6f 70 31 | 2c 26 6f 70 32 2c 26 6f |cpy &op1|,&op2,&o|
|00005ef0| 70 33 2c 26 6f 70 34 0d | 26 6c 61 62 0d 09 69 66 |p3,&op4.|&lab..if|
|00005f00| 09 26 6f 70 34 3d 27 27 | 20 67 6f 74 6f 20 2e 62 |.&op4=''| goto .b|
|00005f10| 0d 09 69 66 09 26 6f 70 | 33 3c 3e 27 27 20 67 6f |..if.&op|3<>'' go|
|00005f20| 74 6f 20 2e 61 0d 09 70 | 68 61 0d 2e 61 0d 09 61 |to .a..p|ha..a..a|
|00005f30| 63 6f 72 6d 09 26 6f 70 | 34 0d 09 73 74 61 09 6e |corm.&op|4..sta.n|
|00005f40| 75 6d 74 6f 63 6f 70 79 | 0d 09 69 66 09 26 6f 70 |umtocopy|..if.&op|
|00005f50| 33 3c 3e 27 27 20 67 6f | 74 6f 20 2e 62 0d 09 70 |3<>'' go|to .b..p|
|00005f60| 6c 61 0d 2e 62 09 69 66 | 09 26 6f 70 31 3d 27 27 |la..b.if|.&op1=''|
|00005f70| 20 67 6f 74 6f 20 2e 63 | 0d 09 6c 64 78 09 23 3c | goto .c|..ldx.#<|
|00005f80| 26 6f 70 31 0d 2e 63 09 | 69 66 09 26 6f 70 32 3d |&op1..c.|if.&op2=|
|00005f90| 27 27 20 67 6f 74 6f 20 | 2e 64 0d 09 6c 64 79 09 |'' goto |.d..ldy.|
|00005fa0| 23 3c 26 6f 70 32 0d 2e | 64 09 69 66 09 26 6f 70 |#<&op2..|d.if.&op|
|00005fb0| 33 3d 27 27 20 67 6f 74 | 6f 20 2e 6a 73 72 0d 09 |3='' got|o .jsr..|
|00005fc0| 61 63 6f 72 6d 09 26 6f | 70 33 0d 2e 6a 73 72 09 |acorm.&o|p3..jsr.|
|00005fd0| 6a 73 72 09 6d 69 64 73 | 74 72 63 70 79 0d 09 6d |jsr.mids|trcpy..m|
|00005fe0| 65 6e 64 0d 0d 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |end...**|********|
|00005ff0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006000| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 0d 0d |********|*****...|
|00006010| 2a 20 54 68 69 73 20 6d | 61 63 72 6f 20 63 6f 6e |* This m|acro con|
|00006020| 63 61 74 65 6e 61 74 65 | 73 20 6f 70 33 20 63 68 |catenate|s op3 ch|
|00006030| 61 72 61 63 74 65 72 73 | 20 6f 66 20 6f 70 32 20 |aracters| of op2 |
|00006040| 73 74 72 69 6e 67 20 6f | 6e 74 6f 20 6f 70 31 20 |string o|nto op1 |
|00006050| 73 74 72 69 6e 67 2e 20 | 20 49 66 0d 2a 20 74 68 |string. | If.* th|
|00006060| 65 72 65 20 69 73 20 6e | 6f 20 6f 70 31 2c 20 74 |ere is n|o op1, t|
|00006070| 68 65 6e 20 74 68 65 20 | 64 65 73 74 69 6e 61 74 |hen the |destinat|
|00006080| 69 6f 6e 20 73 74 72 69 | 6e 67 20 6e 75 6d 62 65 |ion stri|ng numbe|
|00006090| 72 20 69 73 20 61 73 73 | 75 6d 65 64 20 74 6f 20 |r is ass|umed to |
|000060a0| 62 65 20 69 6e 20 74 68 | 65 0d 2a 20 78 72 65 67 |be in th|e.* xreg|
|000060b0| 2e 20 20 49 66 20 74 68 | 65 72 65 20 69 73 20 6e |. If th|ere is n|
|000060c0| 6f 20 6f 70 32 2c 20 74 | 68 65 6e 20 74 68 65 20 |o op2, t|hen the |
|000060d0| 73 6f 75 72 63 65 20 73 | 74 72 69 6e 67 20 6e 75 |source s|tring nu|
|000060e0| 6d 62 65 72 20 69 73 20 | 61 73 73 75 6d 65 64 20 |mber is |assumed |
|000060f0| 74 6f 20 62 65 20 69 6e | 0d 2a 20 74 68 65 20 79 |to be in|.* the y|
|00006100| 72 65 67 2e 20 20 49 66 | 20 74 68 65 72 65 20 69 |reg. If| there i|
|00006110| 73 20 6e 6f 20 6f 70 33 | 2c 20 74 68 65 6e 20 74 |s no op3|, then t|
|00006120| 68 65 20 6e 75 6d 62 65 | 72 20 6f 66 20 63 68 61 |he numbe|r of cha|
|00006130| 72 61 63 74 65 72 73 20 | 69 73 20 61 73 73 75 6d |racters |is assum|
|00006140| 65 64 20 74 6f 0d 2a 20 | 62 65 20 69 6e 20 74 68 |ed to.* |be in th|
|00006150| 65 20 61 63 63 2e 0d 09 | 4d 41 43 52 4f 0d 26 6c |e acc...|MACRO.&l|
|00006160| 61 62 09 5f 6c 65 66 74 | 73 74 72 63 61 74 20 26 |ab._left|strcat &|
|00006170| 6f 70 31 2c 26 6f 70 32 | 2c 26 6f 70 33 0d 26 6c |op1,&op2|,&op3.&l|
|00006180| 61 62 09 0d 09 69 66 09 | 26 6f 70 31 3d 27 27 20 |ab...if.|&op1='' |
|00006190| 67 6f 74 6f 20 2e 61 0d | 09 6c 64 78 09 23 3c 26 |goto .a.|.ldx.#<&|
|000061a0| 6f 70 31 0d 2e 61 09 69 | 66 09 26 6f 70 32 3d 27 |op1..a.i|f.&op2='|
|000061b0| 27 20 67 6f 74 6f 20 2e | 62 0d 09 6c 64 79 09 23 |' goto .|b..ldy.#|
|000061c0| 3c 26 6f 70 32 0d 2e 62 | 09 69 66 09 26 6f 70 33 |<&op2..b|.if.&op3|
|000061d0| 3d 27 27 20 67 6f 74 6f | 20 2e 6a 73 72 0d 09 61 |='' goto| .jsr..a|
|000061e0| 63 6f 72 6d 09 26 6f 70 | 33 0d 2e 6a 73 72 09 6a |corm.&op|3..jsr.j|
|000061f0| 73 72 09 6c 65 66 74 73 | 74 72 63 61 74 0d 09 6d |sr.lefts|trcat..m|
|00006200| 65 6e 64 0d 0d 0d 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |end...**|********|
|00006210| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00006220| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 0d 0d |********|*****...|
|00006230| 2a 20 54 68 69 73 20 6d | 61 63 72 6f 20 63 6f 6e |* This m|acro con|
|00006240| 63 61 74 65 6e 61 74 65 | 73 20 6f 70 32 20 73 74 |catenate|s op2 st|
|00006250| 72 69 6e 67 20 6f 6e 74 | 6f 20 6f 70 31 20 73 74 |ring ont|o op1 st|
|00006260| 72 69 6e 67 2e 20 20 49 | 66 20 74 68 65 72 65 20 |ring. I|f there |
|00006270| 69 73 20 6e 6f 20 6f 70 | 31 2c 0d 2a 20 74 68 65 |is no op|1,.* the|
|00006280| 6e 20 74 68 65 20 64 65 | 73 74 69 6e 61 74 69 6f |n the de|stinatio|
|00006290| 6e 20 73 74 72 69 6e 67 | 20 6e 75 6d 62 65 72 20 |n string| number |
|000062a0| 69 73 20 61 73 73 75 6d | 65 64 20 74 6f 20 62 65 |is assum|ed to be|
|000062b0| 20 69 6e 20 74 68 65 20 | 78 72 65 67 2e 20 20 49 | in the |xreg. I|
|000062c0| 66 20 74 68 65 72 65 0d | 2a 20 69 73 20 6e 6f 20 |f there.|* is no |
|000062d0| 6f 70 32 2c 20 74 68 65 | 6e 20 74 68 65 20 73 6f |op2, the|n the so|
|000062e0| 75 72 63 65 20 73 74 72 | 69 6e 67 20 6e 75 6d 62 |urce str|ing numb|
|000062f0| 65 72 20 69 73 20 61 73 | 73 75 6d 65 64 20 74 6f |er is as|sumed to|
|00006300| 20 62 65 20 69 6e 20 74 | 68 65 20 79 72 65 67 2e | be in t|he yreg.|
|00006310| 0d 09 4d 41 43 52 4f 0d | 26 6c 61 62 09 5f 73 74 |..MACRO.|&lab._st|
|00006320| 72 63 61 74 20 26 6f 70 | 31 2c 26 6f 70 32 0d 26 |rcat &op|1,&op2.&|
|00006330| 6c 61 62 09 0d 09 69 66 | 09 26 6f 70 31 3d 27 27 |lab...if|.&op1=''|
|00006340| 20 67 6f 74 6f 20 2e 61 | 0d 09 6c 64 78 09 23 3c | goto .a|..ldx.#<|
|00006350| 26 6f 70 31 0d 2e 61 09 | 69 66 09 26 6f 70 32 3d |&op1..a.|if.&op2=|
|00006360| 27 27 20 67 6f 74 6f 20 | 2e 6a 73 72 0d 09 6c 64 |'' goto |.jsr..ld|
|00006370| 79 09 23 3c 26 6f 70 32 | 0d 2e 6a 73 72 09 6a 73 |y.#<&op2|..jsr.js|
|00006380| 72 09 73 74 72 63 61 74 | 0d 09 6d 65 6e 64 0d 0d |r.strcat|..mend..|
|00006390| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|000063a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000063b0| 2a 2a 2a 2a 2a 2a 2a 2a | 0d 0d 0d 2a 20 54 68 69 |********|...* Thi|
|000063c0| 73 20 6d 61 63 72 6f 20 | 63 6f 6e 63 61 74 65 6e |s macro |concaten|
|000063d0| 61 74 65 73 20 6f 70 34 | 20 63 68 61 72 61 63 74 |ates op4| charact|
|000063e0| 65 72 73 20 73 74 61 72 | 74 69 6e 67 20 61 74 20 |ers star|ting at |
|000063f0| 6f 70 33 20 63 68 61 72 | 61 63 74 65 72 20 66 72 |op3 char|acter fr|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.